<?php
	/**
	 * The abstract TableProjectGen class defined here is
	 * code-generated and contains all the basic CRUD-type functionality as well as
	 * basic methods to handle relationships and index-based loading.
	 *
	 * To use, you should use the TableProject subclass which
	 * extends this TableProjectGen class.
	 *
	 * Because subsequent re-code generations will overwrite any changes to this
	 * file, you should leave this file unaltered to prevent yourself from losing
	 * any information or code changes.  All customizations should be done by
	 * overriding existing or implementing new methods, properties and variables
	 * in the TableProject class.
	 * 
	 * @package My Application
	 * @subpackage GeneratedDataObjects
	 * @property-read integer $Id the value for intId (Read-Only PK)
	 * @property integer $CategoryId the value for intCategoryId (Not Null)
	 * @property integer $SubcategoryId the value for intSubcategoryId 
	 * @property string $Title the value for strTitle (Not Null)
	 * @property string $Description the value for strDescription 
	 * @property string $Os the value for strOs 
	 * @property string $Db the value for strDb 
	 * @property integer $BudgetMin the value for intBudgetMin 
	 * @property integer $BudgetMax the value for intBudgetMax 
	 * @property string $Featured the value for strFeatured (Not Null)
	 * @property string $HideBid the value for strHideBid (Not Null)
	 * @property string $HideSearch the value for strHideSearch (Not Null)
	 * @property string $GoldOnly the value for strGoldOnly (Not Null)
	 * @property string $Enable the value for strEnable (Not Null)
	 * @property string $Sendmail the value for strSendmail (Not Null)
	 * @property integer $TotalBid the value for intTotalBid (Not Null)
	 * @property QDateTime $TimeLimitDate the value for dttTimeLimitDate 
	 * @property QDateTime $PostDate the value for dttPostDate 
	 * @property QDateTime $CancelDate the value for dttCancelDate 
	 * @property QDateTime $CloseDate the value for dttCloseDate 
	 * @property QDateTime $EndDate the value for dttEndDate 
	 * @property integer $Status the value for intStatus (Not Null)
	 * @property integer $WonUserId the value for intWonUserId 
	 * @property double $AverageBid the value for fltAverageBid 
	 * @property QDateTime $WonDate the value for dttWonDate 
	 * @property QDateTime $StartDate the value for dttStartDate 
	 * @property QDateTime $LastBidDate the value for dttLastBidDate 
	 * @property integer $ProgressNumber the value for intProgressNumber 
	 * @property integer $BudgetExact the value for intBudgetExact 
	 * @property integer $UserId the value for intUserId (Not Null)
	 * @property QDateTime $Deadline the value for dttDeadline 
	 * @property integer $MainCategoryId the value for intMainCategoryId 
	 * @property integer $BudgetType the value for intBudgetType (Not Null)
	 * @property string $BuyerUsername the value for strBuyerUsername 
	 * @property string $ProviderUsername the value for strProviderUsername 
	 * @property integer $PageView the value for intPageView 
	 * @property TableUserProject $WonUser the value for the TableUserProject object referenced by intWonUserId 
	 * @property TableUserProject $User the value for the TableUserProject object referenced by intUserId (Not Null)
	 * @property-read TableEscrow $_TableEscrowAsProject the value for the private _objTableEscrowAsProject (Read-Only) if set due to an expansion on the table_escrow.project_id reverse relationship
	 * @property-read TableEscrow[] $_TableEscrowAsProjectArray the value for the private _objTableEscrowAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_escrow.project_id reverse relationship
	 * @property-read TableFileTransfer $_TableFileTransferAsProject the value for the private _objTableFileTransferAsProject (Read-Only) if set due to an expansion on the table_file_transfer.project_id reverse relationship
	 * @property-read TableFileTransfer[] $_TableFileTransferAsProjectArray the value for the private _objTableFileTransferAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_file_transfer.project_id reverse relationship
	 * @property-read TablePrivateMessage $_TablePrivateMessageAsProject the value for the private _objTablePrivateMessageAsProject (Read-Only) if set due to an expansion on the table_private_message.project_id reverse relationship
	 * @property-read TablePrivateMessage[] $_TablePrivateMessageAsProjectArray the value for the private _objTablePrivateMessageAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_private_message.project_id reverse relationship
	 * @property-read TableProjectAgreement $_TableProjectAgreementAsProject the value for the private _objTableProjectAgreementAsProject (Read-Only) if set due to an expansion on the table_project_agreement.project_id reverse relationship
	 * @property-read TableProjectAgreement[] $_TableProjectAgreementAsProjectArray the value for the private _objTableProjectAgreementAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_agreement.project_id reverse relationship
	 * @property-read TableProjectAttachment $_TableProjectAttachmentAsProject the value for the private _objTableProjectAttachmentAsProject (Read-Only) if set due to an expansion on the table_project_attachment.project_id reverse relationship
	 * @property-read TableProjectAttachment[] $_TableProjectAttachmentAsProjectArray the value for the private _objTableProjectAttachmentAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_attachment.project_id reverse relationship
	 * @property-read TableProjectBid $_TableProjectBidAsProject the value for the private _objTableProjectBidAsProject (Read-Only) if set due to an expansion on the table_project_bid.project_id reverse relationship
	 * @property-read TableProjectBid[] $_TableProjectBidAsProjectArray the value for the private _objTableProjectBidAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_bid.project_id reverse relationship
	 * @property-read TableProjectCancel $_TableProjectCancelAsProject the value for the private _objTableProjectCancelAsProject (Read-Only) if set due to an expansion on the table_project_cancel.project_id reverse relationship
	 * @property-read TableProjectCancel[] $_TableProjectCancelAsProjectArray the value for the private _objTableProjectCancelAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_cancel.project_id reverse relationship
	 * @property-read TableProjectEdit $_TableProjectEditAsProject the value for the private _objTableProjectEditAsProject (Read-Only) if set due to an expansion on the table_project_edit.project_id reverse relationship
	 * @property-read TableProjectEdit[] $_TableProjectEditAsProjectArray the value for the private _objTableProjectEditAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_edit.project_id reverse relationship
	 * @property-read TableProjectKeyword $_TableProjectKeywordAsProject the value for the private _objTableProjectKeywordAsProject (Read-Only) if set due to an expansion on the table_project_keyword.project_id reverse relationship
	 * @property-read TableProjectKeyword[] $_TableProjectKeywordAsProjectArray the value for the private _objTableProjectKeywordAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_keyword.project_id reverse relationship
	 * @property-read TableProjectMessage $_TableProjectMessageAsProject the value for the private _objTableProjectMessageAsProject (Read-Only) if set due to an expansion on the table_project_message.project_id reverse relationship
	 * @property-read TableProjectMessage[] $_TableProjectMessageAsProjectArray the value for the private _objTableProjectMessageAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_message.project_id reverse relationship
	 * @property-read TableProjectRequestCancel $_TableProjectRequestCancelAsProject the value for the private _objTableProjectRequestCancelAsProject (Read-Only) if set due to an expansion on the table_project_request_cancel.project_id reverse relationship
	 * @property-read TableProjectRequestCancel[] $_TableProjectRequestCancelAsProjectArray the value for the private _objTableProjectRequestCancelAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_request_cancel.project_id reverse relationship
	 * @property-read TableProjectRequestComplete $_TableProjectRequestCompleteAsProject the value for the private _objTableProjectRequestCompleteAsProject (Read-Only) if set due to an expansion on the table_project_request_complete.project_id reverse relationship
	 * @property-read TableProjectRequestComplete[] $_TableProjectRequestCompleteAsProjectArray the value for the private _objTableProjectRequestCompleteAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_request_complete.project_id reverse relationship
	 * @property-read TableProjectReviewByBuyer $_TableProjectReviewByBuyerAsProject the value for the private _objTableProjectReviewByBuyerAsProject (Read-Only) if set due to an expansion on the table_project_review_by_buyer.project_id reverse relationship
	 * @property-read TableProjectReviewByBuyer[] $_TableProjectReviewByBuyerAsProjectArray the value for the private _objTableProjectReviewByBuyerAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_review_by_buyer.project_id reverse relationship
	 * @property-read TableProjectReviewByProvider $_TableProjectReviewByProviderAsProject the value for the private _objTableProjectReviewByProviderAsProject (Read-Only) if set due to an expansion on the table_project_review_by_provider.project_id reverse relationship
	 * @property-read TableProjectReviewByProvider[] $_TableProjectReviewByProviderAsProjectArray the value for the private _objTableProjectReviewByProviderAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_review_by_provider.project_id reverse relationship
	 * @property-read TableProjectWon $_TableProjectWonAsProject the value for the private _objTableProjectWonAsProject (Read-Only) if set due to an expansion on the table_project_won.project_id reverse relationship
	 * @property-read TableProjectWon[] $_TableProjectWonAsProjectArray the value for the private _objTableProjectWonAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_project_won.project_id reverse relationship
	 * @property-read TableTransaction $_TableTransactionAsProject the value for the private _objTableTransactionAsProject (Read-Only) if set due to an expansion on the table_transaction.project_id reverse relationship
	 * @property-read TableTransaction[] $_TableTransactionAsProjectArray the value for the private _objTableTransactionAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_transaction.project_id reverse relationship
	 * @property-read TableWatchList $_TableWatchListAsProject the value for the private _objTableWatchListAsProject (Read-Only) if set due to an expansion on the table_watch_list.project_id reverse relationship
	 * @property-read TableWatchList[] $_TableWatchListAsProjectArray the value for the private _objTableWatchListAsProjectArray (Read-Only) if set due to an ExpandAsArray on the table_watch_list.project_id reverse relationship
	 * @property-read boolean $__Restored whether or not this object was restored from the database (as opposed to created new)
	 */
	class TableProjectGen extends QBaseClass {

		///////////////////////////////////////////////////////////////////////
		// PROTECTED MEMBER VARIABLES and TEXT FIELD MAXLENGTHS (if applicable)
		///////////////////////////////////////////////////////////////////////
		
		/**
		 * Protected member variable that maps to the database PK Identity column table_project.id
		 * @var integer intId
		 */
		protected $intId;
		const IdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.category_id
		 * @var integer intCategoryId
		 */
		protected $intCategoryId;
		const CategoryIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.subcategory_id
		 * @var integer intSubcategoryId
		 */
		protected $intSubcategoryId;
		const SubcategoryIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.title
		 * @var string strTitle
		 */
		protected $strTitle;
		const TitleMaxLength = 255;
		const TitleDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.description
		 * @var string strDescription
		 */
		protected $strDescription;
		const DescriptionDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.os
		 * @var string strOs
		 */
		protected $strOs;
		const OsMaxLength = 50;
		const OsDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.db
		 * @var string strDb
		 */
		protected $strDb;
		const DbMaxLength = 50;
		const DbDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.budget_min
		 * @var integer intBudgetMin
		 */
		protected $intBudgetMin;
		const BudgetMinDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.budget_max
		 * @var integer intBudgetMax
		 */
		protected $intBudgetMax;
		const BudgetMaxDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.featured
		 * @var string strFeatured
		 */
		protected $strFeatured;
		const FeaturedMaxLength = 1;
		const FeaturedDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.hide_bid
		 * @var string strHideBid
		 */
		protected $strHideBid;
		const HideBidMaxLength = 1;
		const HideBidDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.hide_search
		 * @var string strHideSearch
		 */
		protected $strHideSearch;
		const HideSearchMaxLength = 1;
		const HideSearchDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.gold_only
		 * @var string strGoldOnly
		 */
		protected $strGoldOnly;
		const GoldOnlyMaxLength = 1;
		const GoldOnlyDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.enable
		 * @var string strEnable
		 */
		protected $strEnable;
		const EnableMaxLength = 1;
		const EnableDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.sendmail
		 * @var string strSendmail
		 */
		protected $strSendmail;
		const SendmailMaxLength = 1;
		const SendmailDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.total_bid
		 * @var integer intTotalBid
		 */
		protected $intTotalBid;
		const TotalBidDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.time_limit_date
		 * @var QDateTime dttTimeLimitDate
		 */
		protected $dttTimeLimitDate;
		const TimeLimitDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.post_date
		 * @var QDateTime dttPostDate
		 */
		protected $dttPostDate;
		const PostDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.cancel_date
		 * @var QDateTime dttCancelDate
		 */
		protected $dttCancelDate;
		const CancelDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.close_date
		 * @var QDateTime dttCloseDate
		 */
		protected $dttCloseDate;
		const CloseDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.end_date
		 * @var QDateTime dttEndDate
		 */
		protected $dttEndDate;
		const EndDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.status
		 * @var integer intStatus
		 */
		protected $intStatus;
		const StatusDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.won_user_id
		 * @var integer intWonUserId
		 */
		protected $intWonUserId;
		const WonUserIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.average_bid
		 * @var double fltAverageBid
		 */
		protected $fltAverageBid;
		const AverageBidDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.won_date
		 * @var QDateTime dttWonDate
		 */
		protected $dttWonDate;
		const WonDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.start_date
		 * @var QDateTime dttStartDate
		 */
		protected $dttStartDate;
		const StartDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.last_bid_date
		 * @var QDateTime dttLastBidDate
		 */
		protected $dttLastBidDate;
		const LastBidDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.progress_number
		 * @var integer intProgressNumber
		 */
		protected $intProgressNumber;
		const ProgressNumberDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.budget_exact
		 * @var integer intBudgetExact
		 */
		protected $intBudgetExact;
		const BudgetExactDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.user_id
		 * @var integer intUserId
		 */
		protected $intUserId;
		const UserIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.deadline
		 * @var QDateTime dttDeadline
		 */
		protected $dttDeadline;
		const DeadlineDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.main_category_id
		 * @var integer intMainCategoryId
		 */
		protected $intMainCategoryId;
		const MainCategoryIdDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.budget_type
		 * @var integer intBudgetType
		 */
		protected $intBudgetType;
		const BudgetTypeDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_project.buyer_username
		 * @var string strBuyerUsername
		 */
		protected $strBuyerUsername;
		const BuyerUsernameMaxLength = 30;
		const BuyerUsernameDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.provider_username
		 * @var string strProviderUsername
		 */
		protected $strProviderUsername;
		const ProviderUsernameMaxLength = 255;
		const ProviderUsernameDefault = null;


		/**
		 * Protected member variable that maps to the database column table_project.page_view
		 * @var integer intPageView
		 */
		protected $intPageView;
		const PageViewDefault = 0;


		/**
		 * Private member variable that stores a reference to a single TableEscrowAsProject object
		 * (of type TableEscrow), if this TableProject object was restored with
		 * an expansion on the table_escrow association table.
		 * @var TableEscrow _objTableEscrowAsProject;
		 */
		private $_objTableEscrowAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableEscrowAsProject objects
		 * (of type TableEscrow[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_escrow association table.
		 * @var TableEscrow[] _objTableEscrowAsProjectArray;
		 */
		private $_objTableEscrowAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableFileTransferAsProject object
		 * (of type TableFileTransfer), if this TableProject object was restored with
		 * an expansion on the table_file_transfer association table.
		 * @var TableFileTransfer _objTableFileTransferAsProject;
		 */
		private $_objTableFileTransferAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableFileTransferAsProject objects
		 * (of type TableFileTransfer[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_file_transfer association table.
		 * @var TableFileTransfer[] _objTableFileTransferAsProjectArray;
		 */
		private $_objTableFileTransferAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TablePrivateMessageAsProject object
		 * (of type TablePrivateMessage), if this TableProject object was restored with
		 * an expansion on the table_private_message association table.
		 * @var TablePrivateMessage _objTablePrivateMessageAsProject;
		 */
		private $_objTablePrivateMessageAsProject;

		/**
		 * Private member variable that stores a reference to an array of TablePrivateMessageAsProject objects
		 * (of type TablePrivateMessage[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_private_message association table.
		 * @var TablePrivateMessage[] _objTablePrivateMessageAsProjectArray;
		 */
		private $_objTablePrivateMessageAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectAgreementAsProject object
		 * (of type TableProjectAgreement), if this TableProject object was restored with
		 * an expansion on the table_project_agreement association table.
		 * @var TableProjectAgreement _objTableProjectAgreementAsProject;
		 */
		private $_objTableProjectAgreementAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectAgreementAsProject objects
		 * (of type TableProjectAgreement[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_agreement association table.
		 * @var TableProjectAgreement[] _objTableProjectAgreementAsProjectArray;
		 */
		private $_objTableProjectAgreementAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectAttachmentAsProject object
		 * (of type TableProjectAttachment), if this TableProject object was restored with
		 * an expansion on the table_project_attachment association table.
		 * @var TableProjectAttachment _objTableProjectAttachmentAsProject;
		 */
		private $_objTableProjectAttachmentAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectAttachmentAsProject objects
		 * (of type TableProjectAttachment[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_attachment association table.
		 * @var TableProjectAttachment[] _objTableProjectAttachmentAsProjectArray;
		 */
		private $_objTableProjectAttachmentAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectBidAsProject object
		 * (of type TableProjectBid), if this TableProject object was restored with
		 * an expansion on the table_project_bid association table.
		 * @var TableProjectBid _objTableProjectBidAsProject;
		 */
		private $_objTableProjectBidAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectBidAsProject objects
		 * (of type TableProjectBid[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_bid association table.
		 * @var TableProjectBid[] _objTableProjectBidAsProjectArray;
		 */
		private $_objTableProjectBidAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectCancelAsProject object
		 * (of type TableProjectCancel), if this TableProject object was restored with
		 * an expansion on the table_project_cancel association table.
		 * @var TableProjectCancel _objTableProjectCancelAsProject;
		 */
		private $_objTableProjectCancelAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectCancelAsProject objects
		 * (of type TableProjectCancel[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_cancel association table.
		 * @var TableProjectCancel[] _objTableProjectCancelAsProjectArray;
		 */
		private $_objTableProjectCancelAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectEditAsProject object
		 * (of type TableProjectEdit), if this TableProject object was restored with
		 * an expansion on the table_project_edit association table.
		 * @var TableProjectEdit _objTableProjectEditAsProject;
		 */
		private $_objTableProjectEditAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectEditAsProject objects
		 * (of type TableProjectEdit[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_edit association table.
		 * @var TableProjectEdit[] _objTableProjectEditAsProjectArray;
		 */
		private $_objTableProjectEditAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectKeywordAsProject object
		 * (of type TableProjectKeyword), if this TableProject object was restored with
		 * an expansion on the table_project_keyword association table.
		 * @var TableProjectKeyword _objTableProjectKeywordAsProject;
		 */
		private $_objTableProjectKeywordAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectKeywordAsProject objects
		 * (of type TableProjectKeyword[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_keyword association table.
		 * @var TableProjectKeyword[] _objTableProjectKeywordAsProjectArray;
		 */
		private $_objTableProjectKeywordAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectMessageAsProject object
		 * (of type TableProjectMessage), if this TableProject object was restored with
		 * an expansion on the table_project_message association table.
		 * @var TableProjectMessage _objTableProjectMessageAsProject;
		 */
		private $_objTableProjectMessageAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectMessageAsProject objects
		 * (of type TableProjectMessage[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_message association table.
		 * @var TableProjectMessage[] _objTableProjectMessageAsProjectArray;
		 */
		private $_objTableProjectMessageAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectRequestCancelAsProject object
		 * (of type TableProjectRequestCancel), if this TableProject object was restored with
		 * an expansion on the table_project_request_cancel association table.
		 * @var TableProjectRequestCancel _objTableProjectRequestCancelAsProject;
		 */
		private $_objTableProjectRequestCancelAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectRequestCancelAsProject objects
		 * (of type TableProjectRequestCancel[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_request_cancel association table.
		 * @var TableProjectRequestCancel[] _objTableProjectRequestCancelAsProjectArray;
		 */
		private $_objTableProjectRequestCancelAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectRequestCompleteAsProject object
		 * (of type TableProjectRequestComplete), if this TableProject object was restored with
		 * an expansion on the table_project_request_complete association table.
		 * @var TableProjectRequestComplete _objTableProjectRequestCompleteAsProject;
		 */
		private $_objTableProjectRequestCompleteAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectRequestCompleteAsProject objects
		 * (of type TableProjectRequestComplete[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_request_complete association table.
		 * @var TableProjectRequestComplete[] _objTableProjectRequestCompleteAsProjectArray;
		 */
		private $_objTableProjectRequestCompleteAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectReviewByBuyerAsProject object
		 * (of type TableProjectReviewByBuyer), if this TableProject object was restored with
		 * an expansion on the table_project_review_by_buyer association table.
		 * @var TableProjectReviewByBuyer _objTableProjectReviewByBuyerAsProject;
		 */
		private $_objTableProjectReviewByBuyerAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectReviewByBuyerAsProject objects
		 * (of type TableProjectReviewByBuyer[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_review_by_buyer association table.
		 * @var TableProjectReviewByBuyer[] _objTableProjectReviewByBuyerAsProjectArray;
		 */
		private $_objTableProjectReviewByBuyerAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectReviewByProviderAsProject object
		 * (of type TableProjectReviewByProvider), if this TableProject object was restored with
		 * an expansion on the table_project_review_by_provider association table.
		 * @var TableProjectReviewByProvider _objTableProjectReviewByProviderAsProject;
		 */
		private $_objTableProjectReviewByProviderAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectReviewByProviderAsProject objects
		 * (of type TableProjectReviewByProvider[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_review_by_provider association table.
		 * @var TableProjectReviewByProvider[] _objTableProjectReviewByProviderAsProjectArray;
		 */
		private $_objTableProjectReviewByProviderAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableProjectWonAsProject object
		 * (of type TableProjectWon), if this TableProject object was restored with
		 * an expansion on the table_project_won association table.
		 * @var TableProjectWon _objTableProjectWonAsProject;
		 */
		private $_objTableProjectWonAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableProjectWonAsProject objects
		 * (of type TableProjectWon[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_project_won association table.
		 * @var TableProjectWon[] _objTableProjectWonAsProjectArray;
		 */
		private $_objTableProjectWonAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableTransactionAsProject object
		 * (of type TableTransaction), if this TableProject object was restored with
		 * an expansion on the table_transaction association table.
		 * @var TableTransaction _objTableTransactionAsProject;
		 */
		private $_objTableTransactionAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableTransactionAsProject objects
		 * (of type TableTransaction[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_transaction association table.
		 * @var TableTransaction[] _objTableTransactionAsProjectArray;
		 */
		private $_objTableTransactionAsProjectArray = array();

		/**
		 * Private member variable that stores a reference to a single TableWatchListAsProject object
		 * (of type TableWatchList), if this TableProject object was restored with
		 * an expansion on the table_watch_list association table.
		 * @var TableWatchList _objTableWatchListAsProject;
		 */
		private $_objTableWatchListAsProject;

		/**
		 * Private member variable that stores a reference to an array of TableWatchListAsProject objects
		 * (of type TableWatchList[]), if this TableProject object was restored with
		 * an ExpandAsArray on the table_watch_list association table.
		 * @var TableWatchList[] _objTableWatchListAsProjectArray;
		 */
		private $_objTableWatchListAsProjectArray = array();

		/**
		 * Protected array of virtual attributes for this object (e.g. extra/other calculated and/or non-object bound
		 * columns from the run-time database query result for this object).  Used by InstantiateDbRow and
		 * GetVirtualAttribute.
		 * @var string[] $__strVirtualAttributeArray
		 */
		protected $__strVirtualAttributeArray = array();

		/**
		 * Protected internal member variable that specifies whether or not this object is Restored from the database.
		 * Used by Save() to determine if Save() should perform a db UPDATE or INSERT.
		 * @var bool __blnRestored;
		 */
		protected $__blnRestored;




		///////////////////////////////
		// PROTECTED MEMBER OBJECTS
		///////////////////////////////

		/**
		 * Protected member variable that contains the object pointed by the reference
		 * in the database column table_project.won_user_id.
		 *
		 * NOTE: Always use the WonUser property getter to correctly retrieve this TableUserProject object.
		 * (Because this class implements late binding, this variable reference MAY be null.)
		 * @var TableUserProject objWonUser
		 */
		protected $objWonUser;

		/**
		 * Protected member variable that contains the object pointed by the reference
		 * in the database column table_project.user_id.
		 *
		 * NOTE: Always use the User property getter to correctly retrieve this TableUserProject object.
		 * (Because this class implements late binding, this variable reference MAY be null.)
		 * @var TableUserProject objUser
		 */
		protected $objUser;





		///////////////////////////////
		// CLASS-WIDE LOAD AND COUNT METHODS
		///////////////////////////////

		/**
		 * Static method to retrieve the Database object that owns this class.
		 * @return QDatabaseBase reference to the Database object that can query this class
		 */
		public static function GetDatabase() {
			return QApplication::$Database[1];
		}

		/**
		 * Load a TableProject from PK Info
		 * @param integer $intId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject
		 */
		public static function Load($intId, $objOptionalClauses = null) {
			// Use QuerySingle to Perform the Query
			return TableProject::QuerySingle(
				QQ::AndCondition(
					QQ::Equal(QQN::TableProject()->Id, $intId)
				),
				$objOptionalClauses
			);
		}

		/**
		 * Load all TableProjects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		 */
		public static function LoadAll($objOptionalClauses = null) {
			if (func_num_args() > 1) {
				throw new QCallerException("LoadAll must be called with an array of optional clauses as a single argument");
			}
			// Call TableProject::QueryArray to perform the LoadAll query
			try {
				return TableProject::QueryArray(QQ::All(), $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count all TableProjects
		 * @return int
		 */
		public static function CountAll() {
			// Call TableProject::QueryCount to perform the CountAll query
			return TableProject::QueryCount(QQ::All());
		}




		///////////////////////////////
		// QCUBED QUERY-RELATED METHODS
		///////////////////////////////

		/**
		 * Internally called method to assist with calling Qcubed Query for this class
		 * on load methods.
		 * @param QQueryBuilder &$objQueryBuilder the QueryBuilder object that will be created
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause object or array of QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with (sending in null will skip the PrepareStatement step)
		 * @param boolean $blnCountOnly only select a rowcount
		 * @return string the query statement
		 */
		protected static function BuildQueryStatement(&$objQueryBuilder, QQCondition $objConditions, $objOptionalClauses, $mixParameterArray, $blnCountOnly) {
			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Create/Build out the QueryBuilder object with TableProject-specific SELET and FROM fields
			$objQueryBuilder = new QQueryBuilder($objDatabase, 'table_project');
			TableProject::GetSelectFields($objQueryBuilder);
			$objQueryBuilder->AddFromItem('table_project');

			// Set "CountOnly" option (if applicable)
			if ($blnCountOnly)
				$objQueryBuilder->SetCountOnlyFlag();

			// Apply Any Conditions
			if ($objConditions)
				try {
					$objConditions->UpdateQueryBuilder($objQueryBuilder);
				} catch (QCallerException $objExc) {
					$objExc->IncrementOffset();
					throw $objExc;
				}

			// Iterate through all the Optional Clauses (if any) and perform accordingly
			if ($objOptionalClauses) {
				if ($objOptionalClauses instanceof QQClause)
					$objOptionalClauses->UpdateQueryBuilder($objQueryBuilder);
				else if (is_array($objOptionalClauses))
					foreach ($objOptionalClauses as $objClause)
						$objClause->UpdateQueryBuilder($objQueryBuilder);
				else
					throw new QCallerException('Optional Clauses must be a QQClause object or an array of QQClause objects');
			}

			// Get the SQL Statement
			$strQuery = $objQueryBuilder->GetStatement();

			// Prepare the Statement with the Query Parameters (if applicable)
			if ($mixParameterArray) {
				if (is_array($mixParameterArray)) {
					if (count($mixParameterArray))
						$strQuery = $objDatabase->PrepareStatement($strQuery, $mixParameterArray);

					// Ensure that there are no other Unresolved Named Parameters
					if (strpos($strQuery, chr(QQNamedValue::DelimiterCode) . '{') !== false)
						throw new QCallerException('Unresolved named parameters in the query');
				} else
					throw new QCallerException('Parameter Array must be an array of name-value parameter pairs');
			}

			// Return the Objects
			return $strQuery;
		}

		/**
		 * Static Qcubed Query method to query for a single TableProject object.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return TableProject the queried object
		 */
		public static function QuerySingle(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableProject::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
			
			// Perform the Query, Get the First Row, and Instantiate a new TableProject object
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);
			
			// Do we have to expand anything?
			if ($objQueryBuilder->ExpandAsArrayNodes) {
				$objToReturn = array();
				while ($objDbRow = $objDbResult->GetNextRow()) {
					$objItem = TableProject::InstantiateDbRow($objDbRow, null, $objQueryBuilder->ExpandAsArrayNodes, $objToReturn, $objQueryBuilder->ColumnAliasArray);
					if ($objItem)
						$objToReturn[] = $objItem;					
				}			
				// Since we only want the object to return, lets return the object and not the array.
				return $objToReturn[0];
			} else {
				// No expands just return the first row
				$objToReturn = null;
				while ($objDbRow = $objDbResult->GetNextRow())
					$objToReturn = TableProject::InstantiateDbRow($objDbRow, null, null, null, $objQueryBuilder->ColumnAliasArray);
			}
			
			return $objToReturn;
		}

		/**
		 * Static Qcubed Query method to query for an array of TableProject objects.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return TableProject[] the queried objects as an array
		 */
		public static function QueryArray(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableProject::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Perform the Query and Instantiate the Array Result
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);
			return TableProject::InstantiateDbResult($objDbResult, $objQueryBuilder->ExpandAsArrayNodes, $objQueryBuilder->ColumnAliasArray);
		}

		/**
		 * Static Qcubed Query method to query for a count of TableProject objects.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return integer the count of queried objects as an integer
		 */
		public static function QueryCount(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableProject::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, true);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Perform the Query and return the row_count
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);

			// Figure out if the query is using GroupBy
			$blnGrouped = false;

			if ($objOptionalClauses) foreach ($objOptionalClauses as $objClause) {
				if ($objClause instanceof QQGroupBy) {
					$blnGrouped = true;
					break;
				}
			}

			if ($blnGrouped)
				// Groups in this query - return the count of Groups (which is the count of all rows)
				return $objDbResult->CountRows();
			else {
				// No Groups - return the sql-calculated count(*) value
				$strDbRow = $objDbResult->FetchRow();
				return QType::Cast($strDbRow[0], QType::Integer);
			}
		}

		public static function QueryArrayCached(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null, $blnForceUpdate = false) {
			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			$strQuery = TableProject::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			
			$objCache = new QCache('qquery/tableproject', $strQuery);
			$cacheData = $objCache->GetData();
			
			if (!$cacheData || $blnForceUpdate) {
				$objDbResult = $objQueryBuilder->Database->Query($strQuery);
				$arrResult = TableProject::InstantiateDbResult($objDbResult, $objQueryBuilder->ExpandAsArrayNodes, $objQueryBuilder->ColumnAliasArray);
				$objCache->SaveData(serialize($arrResult));
			} else {
				$arrResult = unserialize($cacheData);
			}
			
			return $arrResult;
		}

		/**
		 * Updates a QQueryBuilder with the SELECT fields for this TableProject
		 * @param QQueryBuilder $objBuilder the Query Builder object to update
		 * @param string $strPrefix optional prefix to add to the SELECT fields
		 */
		public static function GetSelectFields(QQueryBuilder $objBuilder, $strPrefix = null) {
			if ($strPrefix) {
				$strTableName = $strPrefix;
				$strAliasPrefix = $strPrefix . '__';
			} else {
				$strTableName = 'table_project';
				$strAliasPrefix = '';
			}

			$objBuilder->AddSelectItem($strTableName, 'id', $strAliasPrefix . 'id');
			$objBuilder->AddSelectItem($strTableName, 'category_id', $strAliasPrefix . 'category_id');
			$objBuilder->AddSelectItem($strTableName, 'subcategory_id', $strAliasPrefix . 'subcategory_id');
			$objBuilder->AddSelectItem($strTableName, 'title', $strAliasPrefix . 'title');
			$objBuilder->AddSelectItem($strTableName, 'description', $strAliasPrefix . 'description');
			$objBuilder->AddSelectItem($strTableName, 'os', $strAliasPrefix . 'os');
			$objBuilder->AddSelectItem($strTableName, 'db', $strAliasPrefix . 'db');
			$objBuilder->AddSelectItem($strTableName, 'budget_min', $strAliasPrefix . 'budget_min');
			$objBuilder->AddSelectItem($strTableName, 'budget_max', $strAliasPrefix . 'budget_max');
			$objBuilder->AddSelectItem($strTableName, 'featured', $strAliasPrefix . 'featured');
			$objBuilder->AddSelectItem($strTableName, 'hide_bid', $strAliasPrefix . 'hide_bid');
			$objBuilder->AddSelectItem($strTableName, 'hide_search', $strAliasPrefix . 'hide_search');
			$objBuilder->AddSelectItem($strTableName, 'gold_only', $strAliasPrefix . 'gold_only');
			$objBuilder->AddSelectItem($strTableName, 'enable', $strAliasPrefix . 'enable');
			$objBuilder->AddSelectItem($strTableName, 'sendmail', $strAliasPrefix . 'sendmail');
			$objBuilder->AddSelectItem($strTableName, 'total_bid', $strAliasPrefix . 'total_bid');
			$objBuilder->AddSelectItem($strTableName, 'time_limit_date', $strAliasPrefix . 'time_limit_date');
			$objBuilder->AddSelectItem($strTableName, 'post_date', $strAliasPrefix . 'post_date');
			$objBuilder->AddSelectItem($strTableName, 'cancel_date', $strAliasPrefix . 'cancel_date');
			$objBuilder->AddSelectItem($strTableName, 'close_date', $strAliasPrefix . 'close_date');
			$objBuilder->AddSelectItem($strTableName, 'end_date', $strAliasPrefix . 'end_date');
			$objBuilder->AddSelectItem($strTableName, 'status', $strAliasPrefix . 'status');
			$objBuilder->AddSelectItem($strTableName, 'won_user_id', $strAliasPrefix . 'won_user_id');
			$objBuilder->AddSelectItem($strTableName, 'average_bid', $strAliasPrefix . 'average_bid');
			$objBuilder->AddSelectItem($strTableName, 'won_date', $strAliasPrefix . 'won_date');
			$objBuilder->AddSelectItem($strTableName, 'start_date', $strAliasPrefix . 'start_date');
			$objBuilder->AddSelectItem($strTableName, 'last_bid_date', $strAliasPrefix . 'last_bid_date');
			$objBuilder->AddSelectItem($strTableName, 'progress_number', $strAliasPrefix . 'progress_number');
			$objBuilder->AddSelectItem($strTableName, 'budget_exact', $strAliasPrefix . 'budget_exact');
			$objBuilder->AddSelectItem($strTableName, 'user_id', $strAliasPrefix . 'user_id');
			$objBuilder->AddSelectItem($strTableName, 'deadline', $strAliasPrefix . 'deadline');
			$objBuilder->AddSelectItem($strTableName, 'main_category_id', $strAliasPrefix . 'main_category_id');
			$objBuilder->AddSelectItem($strTableName, 'budget_type', $strAliasPrefix . 'budget_type');
			$objBuilder->AddSelectItem($strTableName, 'buyer_username', $strAliasPrefix . 'buyer_username');
			$objBuilder->AddSelectItem($strTableName, 'provider_username', $strAliasPrefix . 'provider_username');
			$objBuilder->AddSelectItem($strTableName, 'page_view', $strAliasPrefix . 'page_view');
		}



		///////////////////////////////
		// INSTANTIATION-RELATED METHODS
		///////////////////////////////

		/**
		 * Instantiate a TableProject from a Database Row.
		 * Takes in an optional strAliasPrefix, used in case another Object::InstantiateDbRow
		 * is calling this TableProject::InstantiateDbRow in order to perform
		 * early binding on referenced objects.
		 * @param DatabaseRowBase $objDbRow
		 * @param string $strAliasPrefix
		 * @param string $strExpandAsArrayNodes
		 * @param QBaseClass $arrPreviousItem
		 * @param string[] $strColumnAliasArray
		 * @return TableProject
		*/
		public static function InstantiateDbRow($objDbRow, $strAliasPrefix = null, $strExpandAsArrayNodes = null, $arrPreviousItems = null, $strColumnAliasArray = array()) {
			// If blank row, return null
			if (!$objDbRow) {
				return null;
			}
			// See if we're doing an array expansion on the previous item
			$strAlias = $strAliasPrefix . 'id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (($strExpandAsArrayNodes) && is_array($arrPreviousItems) && count($arrPreviousItems)) {
				foreach ($arrPreviousItems as $objPreviousItem) {            
					if ($objPreviousItem->intId == $objDbRow->GetColumn($strAliasName, 'Integer')) {        
						// We are.  Now, prepare to check for ExpandAsArray clauses
						$blnExpandedViaArray = false;
						if (!$strAliasPrefix)
							$strAliasPrefix = 'table_project__';


						// Expanding reverse references: TableEscrowAsProject
						$strAlias = $strAliasPrefix . 'tableescrowasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableEscrowAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableEscrowAsProjectArray;
								$objChildItem = TableEscrow::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableescrowasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableEscrowAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableEscrowAsProjectArray[] = TableEscrow::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableescrowasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableFileTransferAsProject
						$strAlias = $strAliasPrefix . 'tablefiletransferasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableFileTransferAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableFileTransferAsProjectArray;
								$objChildItem = TableFileTransfer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablefiletransferasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableFileTransferAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableFileTransferAsProjectArray[] = TableFileTransfer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablefiletransferasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TablePrivateMessageAsProject
						$strAlias = $strAliasPrefix . 'tableprivatemessageasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTablePrivateMessageAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTablePrivateMessageAsProjectArray;
								$objChildItem = TablePrivateMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprivatemessageasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTablePrivateMessageAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTablePrivateMessageAsProjectArray[] = TablePrivateMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprivatemessageasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectAgreementAsProject
						$strAlias = $strAliasPrefix . 'tableprojectagreementasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectAgreementAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectAgreementAsProjectArray;
								$objChildItem = TableProjectAgreement::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectagreementasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectAgreementAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectAgreementAsProjectArray[] = TableProjectAgreement::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectagreementasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectAttachmentAsProject
						$strAlias = $strAliasPrefix . 'tableprojectattachmentasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectAttachmentAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectAttachmentAsProjectArray;
								$objChildItem = TableProjectAttachment::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectattachmentasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectAttachmentAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectAttachmentAsProjectArray[] = TableProjectAttachment::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectattachmentasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectBidAsProject
						$strAlias = $strAliasPrefix . 'tableprojectbidasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectBidAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectBidAsProjectArray;
								$objChildItem = TableProjectBid::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectbidasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectBidAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectBidAsProjectArray[] = TableProjectBid::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectbidasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectCancelAsProject
						$strAlias = $strAliasPrefix . 'tableprojectcancelasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectCancelAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectCancelAsProjectArray;
								$objChildItem = TableProjectCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectcancelasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectCancelAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectCancelAsProjectArray[] = TableProjectCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectcancelasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectEditAsProject
						$strAlias = $strAliasPrefix . 'tableprojecteditasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectEditAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectEditAsProjectArray;
								$objChildItem = TableProjectEdit::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojecteditasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectEditAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectEditAsProjectArray[] = TableProjectEdit::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojecteditasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectKeywordAsProject
						$strAlias = $strAliasPrefix . 'tableprojectkeywordasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectKeywordAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectKeywordAsProjectArray;
								$objChildItem = TableProjectKeyword::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectkeywordasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectKeywordAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectKeywordAsProjectArray[] = TableProjectKeyword::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectkeywordasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectMessageAsProject
						$strAlias = $strAliasPrefix . 'tableprojectmessageasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectMessageAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectMessageAsProjectArray;
								$objChildItem = TableProjectMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectmessageasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectMessageAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectMessageAsProjectArray[] = TableProjectMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectmessageasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectRequestCancelAsProject
						$strAlias = $strAliasPrefix . 'tableprojectrequestcancelasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectRequestCancelAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectRequestCancelAsProjectArray;
								$objChildItem = TableProjectRequestCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcancelasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectRequestCancelAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectRequestCancelAsProjectArray[] = TableProjectRequestCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcancelasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectRequestCompleteAsProject
						$strAlias = $strAliasPrefix . 'tableprojectrequestcompleteasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectRequestCompleteAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectRequestCompleteAsProjectArray;
								$objChildItem = TableProjectRequestComplete::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcompleteasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectRequestCompleteAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectRequestCompleteAsProjectArray[] = TableProjectRequestComplete::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcompleteasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectReviewByBuyerAsProject
						$strAlias = $strAliasPrefix . 'tableprojectreviewbybuyerasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectReviewByBuyerAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectReviewByBuyerAsProjectArray;
								$objChildItem = TableProjectReviewByBuyer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbybuyerasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectReviewByBuyerAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectReviewByBuyerAsProjectArray[] = TableProjectReviewByBuyer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbybuyerasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectReviewByProviderAsProject
						$strAlias = $strAliasPrefix . 'tableprojectreviewbyproviderasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectReviewByProviderAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectReviewByProviderAsProjectArray;
								$objChildItem = TableProjectReviewByProvider::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbyproviderasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectReviewByProviderAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectReviewByProviderAsProjectArray[] = TableProjectReviewByProvider::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbyproviderasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableProjectWonAsProject
						$strAlias = $strAliasPrefix . 'tableprojectwonasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableProjectWonAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableProjectWonAsProjectArray;
								$objChildItem = TableProjectWon::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectwonasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableProjectWonAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableProjectWonAsProjectArray[] = TableProjectWon::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectwonasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableTransactionAsProject
						$strAlias = $strAliasPrefix . 'tabletransactionasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableTransactionAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableTransactionAsProjectArray;
								$objChildItem = TableTransaction::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tabletransactionasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableTransactionAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableTransactionAsProjectArray[] = TableTransaction::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tabletransactionasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Expanding reverse references: TableWatchListAsProject
						$strAlias = $strAliasPrefix . 'tablewatchlistasproject__id';
						$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
						if ((array_key_exists($strAlias, $strExpandAsArrayNodes)) &&
							(!is_null($objDbRow->GetColumn($strAliasName)))) {
							if ($intPreviousChildItemCount = count($objPreviousItem->_objTableWatchListAsProjectArray)) {
								$objPreviousChildItems = $objPreviousItem->_objTableWatchListAsProjectArray;
								$objChildItem = TableWatchList::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablewatchlistasproject__', $strExpandAsArrayNodes, $objPreviousChildItems, $strColumnAliasArray);
								if ($objChildItem) {
									$objPreviousItem->_objTableWatchListAsProjectArray[] = $objChildItem;
								}
							} else {
								$objPreviousItem->_objTableWatchListAsProjectArray[] = TableWatchList::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablewatchlistasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
							}
							$blnExpandedViaArray = true;
						}

						// Either return false to signal array expansion, or check-to-reset the Alias prefix and move on
						if ($blnExpandedViaArray) {
							return false;
						} else if ($strAliasPrefix == 'table_project__') {
							$strAliasPrefix = null;
						}
					}
				}
			}

			// Create a new instance of the TableProject object
			$objToReturn = new TableProject();
			$objToReturn->__blnRestored = true;

			$strAliasName = array_key_exists($strAliasPrefix . 'id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'id'] : $strAliasPrefix . 'id';
			$objToReturn->intId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'category_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'category_id'] : $strAliasPrefix . 'category_id';
			$objToReturn->intCategoryId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'subcategory_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'subcategory_id'] : $strAliasPrefix . 'subcategory_id';
			$objToReturn->intSubcategoryId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'title', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'title'] : $strAliasPrefix . 'title';
			$objToReturn->strTitle = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'description', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'description'] : $strAliasPrefix . 'description';
			$objToReturn->strDescription = $objDbRow->GetColumn($strAliasName, 'Blob');
			$strAliasName = array_key_exists($strAliasPrefix . 'os', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'os'] : $strAliasPrefix . 'os';
			$objToReturn->strOs = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'db', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'db'] : $strAliasPrefix . 'db';
			$objToReturn->strDb = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'budget_min', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'budget_min'] : $strAliasPrefix . 'budget_min';
			$objToReturn->intBudgetMin = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'budget_max', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'budget_max'] : $strAliasPrefix . 'budget_max';
			$objToReturn->intBudgetMax = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'featured', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'featured'] : $strAliasPrefix . 'featured';
			$objToReturn->strFeatured = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'hide_bid', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'hide_bid'] : $strAliasPrefix . 'hide_bid';
			$objToReturn->strHideBid = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'hide_search', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'hide_search'] : $strAliasPrefix . 'hide_search';
			$objToReturn->strHideSearch = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'gold_only', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'gold_only'] : $strAliasPrefix . 'gold_only';
			$objToReturn->strGoldOnly = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'enable', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'enable'] : $strAliasPrefix . 'enable';
			$objToReturn->strEnable = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'sendmail', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'sendmail'] : $strAliasPrefix . 'sendmail';
			$objToReturn->strSendmail = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'total_bid', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'total_bid'] : $strAliasPrefix . 'total_bid';
			$objToReturn->intTotalBid = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'time_limit_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'time_limit_date'] : $strAliasPrefix . 'time_limit_date';
			$objToReturn->dttTimeLimitDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'post_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'post_date'] : $strAliasPrefix . 'post_date';
			$objToReturn->dttPostDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'cancel_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'cancel_date'] : $strAliasPrefix . 'cancel_date';
			$objToReturn->dttCancelDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'close_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'close_date'] : $strAliasPrefix . 'close_date';
			$objToReturn->dttCloseDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'end_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'end_date'] : $strAliasPrefix . 'end_date';
			$objToReturn->dttEndDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'status', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'status'] : $strAliasPrefix . 'status';
			$objToReturn->intStatus = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'won_user_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'won_user_id'] : $strAliasPrefix . 'won_user_id';
			$objToReturn->intWonUserId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'average_bid', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'average_bid'] : $strAliasPrefix . 'average_bid';
			$objToReturn->fltAverageBid = $objDbRow->GetColumn($strAliasName, 'Float');
			$strAliasName = array_key_exists($strAliasPrefix . 'won_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'won_date'] : $strAliasPrefix . 'won_date';
			$objToReturn->dttWonDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'start_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'start_date'] : $strAliasPrefix . 'start_date';
			$objToReturn->dttStartDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'last_bid_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'last_bid_date'] : $strAliasPrefix . 'last_bid_date';
			$objToReturn->dttLastBidDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'progress_number', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'progress_number'] : $strAliasPrefix . 'progress_number';
			$objToReturn->intProgressNumber = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'budget_exact', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'budget_exact'] : $strAliasPrefix . 'budget_exact';
			$objToReturn->intBudgetExact = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'user_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'user_id'] : $strAliasPrefix . 'user_id';
			$objToReturn->intUserId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'deadline', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'deadline'] : $strAliasPrefix . 'deadline';
			$objToReturn->dttDeadline = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'main_category_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'main_category_id'] : $strAliasPrefix . 'main_category_id';
			$objToReturn->intMainCategoryId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'budget_type', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'budget_type'] : $strAliasPrefix . 'budget_type';
			$objToReturn->intBudgetType = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'buyer_username', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'buyer_username'] : $strAliasPrefix . 'buyer_username';
			$objToReturn->strBuyerUsername = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'provider_username', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'provider_username'] : $strAliasPrefix . 'provider_username';
			$objToReturn->strProviderUsername = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'page_view', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'page_view'] : $strAliasPrefix . 'page_view';
			$objToReturn->intPageView = $objDbRow->GetColumn($strAliasName, 'Integer');

			if (isset($arrPreviousItems) && is_array($arrPreviousItems)) {
				foreach ($arrPreviousItems as $objPreviousItem) {
					if ($objToReturn->Id != $objPreviousItem->Id) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableEscrowAsProjectArray, $objToReturn->_objTableEscrowAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableFileTransferAsProjectArray, $objToReturn->_objTableFileTransferAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTablePrivateMessageAsProjectArray, $objToReturn->_objTablePrivateMessageAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectAgreementAsProjectArray, $objToReturn->_objTableProjectAgreementAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectAttachmentAsProjectArray, $objToReturn->_objTableProjectAttachmentAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectBidAsProjectArray, $objToReturn->_objTableProjectBidAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectCancelAsProjectArray, $objToReturn->_objTableProjectCancelAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectEditAsProjectArray, $objToReturn->_objTableProjectEditAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectKeywordAsProjectArray, $objToReturn->_objTableProjectKeywordAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectMessageAsProjectArray, $objToReturn->_objTableProjectMessageAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectRequestCancelAsProjectArray, $objToReturn->_objTableProjectRequestCancelAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectRequestCompleteAsProjectArray, $objToReturn->_objTableProjectRequestCompleteAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectReviewByBuyerAsProjectArray, $objToReturn->_objTableProjectReviewByBuyerAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectReviewByProviderAsProjectArray, $objToReturn->_objTableProjectReviewByProviderAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableProjectWonAsProjectArray, $objToReturn->_objTableProjectWonAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableTransactionAsProjectArray, $objToReturn->_objTableTransactionAsProjectArray) != null) {
						continue;
					}
					if (array_diff($objPreviousItem->_objTableWatchListAsProjectArray, $objToReturn->_objTableWatchListAsProjectArray) != null) {
						continue;
					}

					// complete match - all primary key columns are the same
					return null;
				}
			}

			// Instantiate Virtual Attributes
			foreach ($objDbRow->GetColumnNameArray() as $strColumnName => $mixValue) {
				$strVirtualPrefix = $strAliasPrefix . '__';
				$strVirtualPrefixLength = strlen($strVirtualPrefix);
				if (substr($strColumnName, 0, $strVirtualPrefixLength) == $strVirtualPrefix)
					$objToReturn->__strVirtualAttributeArray[substr($strColumnName, $strVirtualPrefixLength)] = $mixValue;
			}

			// Prepare to Check for Early/Virtual Binding
			if (!$strAliasPrefix)
				$strAliasPrefix = 'table_project__';

			// Check for WonUser Early Binding
			$strAlias = $strAliasPrefix . 'won_user_id__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName)))
				$objToReturn->objWonUser = TableUserProject::InstantiateDbRow($objDbRow, $strAliasPrefix . 'won_user_id__', $strExpandAsArrayNodes, null, $strColumnAliasArray);

			// Check for User Early Binding
			$strAlias = $strAliasPrefix . 'user_id__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName)))
				$objToReturn->objUser = TableUserProject::InstantiateDbRow($objDbRow, $strAliasPrefix . 'user_id__', $strExpandAsArrayNodes, null, $strColumnAliasArray);




			// Check for TableEscrowAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableescrowasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableEscrowAsProjectArray[] = TableEscrow::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableescrowasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableEscrowAsProject = TableEscrow::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableescrowasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableFileTransferAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tablefiletransferasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableFileTransferAsProjectArray[] = TableFileTransfer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablefiletransferasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableFileTransferAsProject = TableFileTransfer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablefiletransferasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TablePrivateMessageAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprivatemessageasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTablePrivateMessageAsProjectArray[] = TablePrivateMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprivatemessageasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTablePrivateMessageAsProject = TablePrivateMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprivatemessageasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectAgreementAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectagreementasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectAgreementAsProjectArray[] = TableProjectAgreement::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectagreementasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectAgreementAsProject = TableProjectAgreement::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectagreementasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectAttachmentAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectattachmentasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectAttachmentAsProjectArray[] = TableProjectAttachment::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectattachmentasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectAttachmentAsProject = TableProjectAttachment::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectattachmentasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectBidAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectbidasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectBidAsProjectArray[] = TableProjectBid::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectbidasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectBidAsProject = TableProjectBid::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectbidasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectCancelAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectcancelasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectCancelAsProjectArray[] = TableProjectCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectcancelasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectCancelAsProject = TableProjectCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectcancelasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectEditAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojecteditasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectEditAsProjectArray[] = TableProjectEdit::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojecteditasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectEditAsProject = TableProjectEdit::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojecteditasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectKeywordAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectkeywordasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectKeywordAsProjectArray[] = TableProjectKeyword::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectkeywordasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectKeywordAsProject = TableProjectKeyword::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectkeywordasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectMessageAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectmessageasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectMessageAsProjectArray[] = TableProjectMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectmessageasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectMessageAsProject = TableProjectMessage::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectmessageasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectRequestCancelAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectrequestcancelasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectRequestCancelAsProjectArray[] = TableProjectRequestCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcancelasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectRequestCancelAsProject = TableProjectRequestCancel::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcancelasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectRequestCompleteAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectrequestcompleteasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectRequestCompleteAsProjectArray[] = TableProjectRequestComplete::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcompleteasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectRequestCompleteAsProject = TableProjectRequestComplete::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectrequestcompleteasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectReviewByBuyerAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectreviewbybuyerasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectReviewByBuyerAsProjectArray[] = TableProjectReviewByBuyer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbybuyerasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectReviewByBuyerAsProject = TableProjectReviewByBuyer::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbybuyerasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectReviewByProviderAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectreviewbyproviderasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectReviewByProviderAsProjectArray[] = TableProjectReviewByProvider::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbyproviderasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectReviewByProviderAsProject = TableProjectReviewByProvider::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectreviewbyproviderasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableProjectWonAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tableprojectwonasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableProjectWonAsProjectArray[] = TableProjectWon::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectwonasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableProjectWonAsProject = TableProjectWon::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tableprojectwonasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableTransactionAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tabletransactionasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableTransactionAsProjectArray[] = TableTransaction::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tabletransactionasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableTransactionAsProject = TableTransaction::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tabletransactionasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			// Check for TableWatchListAsProject Virtual Binding
			$strAlias = $strAliasPrefix . 'tablewatchlistasproject__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName))) {
				if (($strExpandAsArrayNodes) && (array_key_exists($strAlias, $strExpandAsArrayNodes)))
					$objToReturn->_objTableWatchListAsProjectArray[] = TableWatchList::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablewatchlistasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
				else
					$objToReturn->_objTableWatchListAsProject = TableWatchList::InstantiateDbRow($objDbRow, $strAliasPrefix . 'tablewatchlistasproject__', $strExpandAsArrayNodes, null, $strColumnAliasArray);
			}

			return $objToReturn;
		}

		/**
		 * Instantiate an array of TableProjects from a Database Result
		 * @param DatabaseResultBase $objDbResult
		 * @param string $strExpandAsArrayNodes
		 * @param string[] $strColumnAliasArray
		 * @return TableProject[]
		 */
		public static function InstantiateDbResult(QDatabaseResultBase $objDbResult, $strExpandAsArrayNodes = null, $strColumnAliasArray = null) {
			$objToReturn = array();
			
			if (!$strColumnAliasArray)
				$strColumnAliasArray = array();

			// If blank resultset, then return empty array
			if (!$objDbResult)
				return $objToReturn;

			// Load up the return array with each row
			if ($strExpandAsArrayNodes) {
				$objToReturn = array();
				while ($objDbRow = $objDbResult->GetNextRow()) {
					$objItem = TableProject::InstantiateDbRow($objDbRow, null, $strExpandAsArrayNodes, $objToReturn, $strColumnAliasArray);
					if ($objItem) {
						$objToReturn[] = $objItem;
					}
				}
			} else {
				while ($objDbRow = $objDbResult->GetNextRow())
					$objToReturn[] = TableProject::InstantiateDbRow($objDbRow, null, null, null, $strColumnAliasArray);
			}

			return $objToReturn;
		}



		///////////////////////////////////////////////////
		// INDEX-BASED LOAD METHODS (Single Load and Array)
		///////////////////////////////////////////////////
			
		/**
		 * Load a single TableProject object,
		 * by Id Index(es)
		 * @param integer $intId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject
		*/
		public static function LoadById($intId, $objOptionalClauses = null) {
			return TableProject::QuerySingle(
				QQ::AndCondition(
					QQ::Equal(QQN::TableProject()->Id, $intId)
				),
				$objOptionalClauses
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by CategoryId Index(es)
		 * @param integer $intCategoryId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByCategoryId($intCategoryId, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByCategoryId query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->CategoryId, $intCategoryId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by CategoryId Index(es)
		 * @param integer $intCategoryId
		 * @return int
		*/
		public static function CountByCategoryId($intCategoryId) {
			// Call TableProject::QueryCount to perform the CountByCategoryId query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->CategoryId, $intCategoryId)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by SubcategoryId Index(es)
		 * @param integer $intSubcategoryId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayBySubcategoryId($intSubcategoryId, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayBySubcategoryId query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->SubcategoryId, $intSubcategoryId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by SubcategoryId Index(es)
		 * @param integer $intSubcategoryId
		 * @return int
		*/
		public static function CountBySubcategoryId($intSubcategoryId) {
			// Call TableProject::QueryCount to perform the CountBySubcategoryId query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->SubcategoryId, $intSubcategoryId)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by Title Index(es)
		 * @param string $strTitle
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByTitle($strTitle, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByTitle query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->Title, $strTitle),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by Title Index(es)
		 * @param string $strTitle
		 * @return int
		*/
		public static function CountByTitle($strTitle) {
			// Call TableProject::QueryCount to perform the CountByTitle query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->Title, $strTitle)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by BudgetMin Index(es)
		 * @param integer $intBudgetMin
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByBudgetMin($intBudgetMin, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByBudgetMin query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->BudgetMin, $intBudgetMin),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by BudgetMin Index(es)
		 * @param integer $intBudgetMin
		 * @return int
		*/
		public static function CountByBudgetMin($intBudgetMin) {
			// Call TableProject::QueryCount to perform the CountByBudgetMin query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->BudgetMin, $intBudgetMin)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by BudgetMax Index(es)
		 * @param integer $intBudgetMax
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByBudgetMax($intBudgetMax, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByBudgetMax query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->BudgetMax, $intBudgetMax),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by BudgetMax Index(es)
		 * @param integer $intBudgetMax
		 * @return int
		*/
		public static function CountByBudgetMax($intBudgetMax) {
			// Call TableProject::QueryCount to perform the CountByBudgetMax query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->BudgetMax, $intBudgetMax)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by Featured Index(es)
		 * @param string $strFeatured
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByFeatured($strFeatured, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByFeatured query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->Featured, $strFeatured),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by Featured Index(es)
		 * @param string $strFeatured
		 * @return int
		*/
		public static function CountByFeatured($strFeatured) {
			// Call TableProject::QueryCount to perform the CountByFeatured query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->Featured, $strFeatured)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by HideBid Index(es)
		 * @param string $strHideBid
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByHideBid($strHideBid, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByHideBid query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->HideBid, $strHideBid),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by HideBid Index(es)
		 * @param string $strHideBid
		 * @return int
		*/
		public static function CountByHideBid($strHideBid) {
			// Call TableProject::QueryCount to perform the CountByHideBid query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->HideBid, $strHideBid)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by HideSearch Index(es)
		 * @param string $strHideSearch
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByHideSearch($strHideSearch, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByHideSearch query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->HideSearch, $strHideSearch),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by HideSearch Index(es)
		 * @param string $strHideSearch
		 * @return int
		*/
		public static function CountByHideSearch($strHideSearch) {
			// Call TableProject::QueryCount to perform the CountByHideSearch query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->HideSearch, $strHideSearch)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by GoldOnly Index(es)
		 * @param string $strGoldOnly
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByGoldOnly($strGoldOnly, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByGoldOnly query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->GoldOnly, $strGoldOnly),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by GoldOnly Index(es)
		 * @param string $strGoldOnly
		 * @return int
		*/
		public static function CountByGoldOnly($strGoldOnly) {
			// Call TableProject::QueryCount to perform the CountByGoldOnly query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->GoldOnly, $strGoldOnly)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by Enable Index(es)
		 * @param string $strEnable
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByEnable($strEnable, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByEnable query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->Enable, $strEnable),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by Enable Index(es)
		 * @param string $strEnable
		 * @return int
		*/
		public static function CountByEnable($strEnable) {
			// Call TableProject::QueryCount to perform the CountByEnable query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->Enable, $strEnable)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by Sendmail Index(es)
		 * @param string $strSendmail
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayBySendmail($strSendmail, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayBySendmail query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->Sendmail, $strSendmail),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by Sendmail Index(es)
		 * @param string $strSendmail
		 * @return int
		*/
		public static function CountBySendmail($strSendmail) {
			// Call TableProject::QueryCount to perform the CountBySendmail query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->Sendmail, $strSendmail)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by TotalBid Index(es)
		 * @param integer $intTotalBid
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByTotalBid($intTotalBid, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByTotalBid query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->TotalBid, $intTotalBid),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by TotalBid Index(es)
		 * @param integer $intTotalBid
		 * @return int
		*/
		public static function CountByTotalBid($intTotalBid) {
			// Call TableProject::QueryCount to perform the CountByTotalBid query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->TotalBid, $intTotalBid)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by TimeLimitDate Index(es)
		 * @param QDateTime $dttTimeLimitDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByTimeLimitDate($dttTimeLimitDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByTimeLimitDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->TimeLimitDate, $dttTimeLimitDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by TimeLimitDate Index(es)
		 * @param QDateTime $dttTimeLimitDate
		 * @return int
		*/
		public static function CountByTimeLimitDate($dttTimeLimitDate) {
			// Call TableProject::QueryCount to perform the CountByTimeLimitDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->TimeLimitDate, $dttTimeLimitDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by PostDate Index(es)
		 * @param QDateTime $dttPostDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByPostDate($dttPostDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByPostDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->PostDate, $dttPostDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by PostDate Index(es)
		 * @param QDateTime $dttPostDate
		 * @return int
		*/
		public static function CountByPostDate($dttPostDate) {
			// Call TableProject::QueryCount to perform the CountByPostDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->PostDate, $dttPostDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by CancelDate Index(es)
		 * @param QDateTime $dttCancelDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByCancelDate($dttCancelDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByCancelDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->CancelDate, $dttCancelDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by CancelDate Index(es)
		 * @param QDateTime $dttCancelDate
		 * @return int
		*/
		public static function CountByCancelDate($dttCancelDate) {
			// Call TableProject::QueryCount to perform the CountByCancelDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->CancelDate, $dttCancelDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by CloseDate Index(es)
		 * @param QDateTime $dttCloseDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByCloseDate($dttCloseDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByCloseDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->CloseDate, $dttCloseDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by CloseDate Index(es)
		 * @param QDateTime $dttCloseDate
		 * @return int
		*/
		public static function CountByCloseDate($dttCloseDate) {
			// Call TableProject::QueryCount to perform the CountByCloseDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->CloseDate, $dttCloseDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by EndDate Index(es)
		 * @param QDateTime $dttEndDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByEndDate($dttEndDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByEndDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->EndDate, $dttEndDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by EndDate Index(es)
		 * @param QDateTime $dttEndDate
		 * @return int
		*/
		public static function CountByEndDate($dttEndDate) {
			// Call TableProject::QueryCount to perform the CountByEndDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->EndDate, $dttEndDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by Status Index(es)
		 * @param integer $intStatus
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByStatus($intStatus, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByStatus query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->Status, $intStatus),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by Status Index(es)
		 * @param integer $intStatus
		 * @return int
		*/
		public static function CountByStatus($intStatus) {
			// Call TableProject::QueryCount to perform the CountByStatus query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->Status, $intStatus)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by AverageBid Index(es)
		 * @param double $fltAverageBid
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByAverageBid($fltAverageBid, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByAverageBid query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->AverageBid, $fltAverageBid),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by AverageBid Index(es)
		 * @param double $fltAverageBid
		 * @return int
		*/
		public static function CountByAverageBid($fltAverageBid) {
			// Call TableProject::QueryCount to perform the CountByAverageBid query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->AverageBid, $fltAverageBid)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by WonUserId Index(es)
		 * @param integer $intWonUserId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByWonUserId($intWonUserId, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByWonUserId query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->WonUserId, $intWonUserId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by WonUserId Index(es)
		 * @param integer $intWonUserId
		 * @return int
		*/
		public static function CountByWonUserId($intWonUserId) {
			// Call TableProject::QueryCount to perform the CountByWonUserId query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->WonUserId, $intWonUserId)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by WonDate Index(es)
		 * @param QDateTime $dttWonDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByWonDate($dttWonDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByWonDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->WonDate, $dttWonDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by WonDate Index(es)
		 * @param QDateTime $dttWonDate
		 * @return int
		*/
		public static function CountByWonDate($dttWonDate) {
			// Call TableProject::QueryCount to perform the CountByWonDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->WonDate, $dttWonDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by StartDate Index(es)
		 * @param QDateTime $dttStartDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByStartDate($dttStartDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByStartDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->StartDate, $dttStartDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by StartDate Index(es)
		 * @param QDateTime $dttStartDate
		 * @return int
		*/
		public static function CountByStartDate($dttStartDate) {
			// Call TableProject::QueryCount to perform the CountByStartDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->StartDate, $dttStartDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by LastBidDate Index(es)
		 * @param QDateTime $dttLastBidDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByLastBidDate($dttLastBidDate, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByLastBidDate query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->LastBidDate, $dttLastBidDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by LastBidDate Index(es)
		 * @param QDateTime $dttLastBidDate
		 * @return int
		*/
		public static function CountByLastBidDate($dttLastBidDate) {
			// Call TableProject::QueryCount to perform the CountByLastBidDate query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->LastBidDate, $dttLastBidDate)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by UserId Index(es)
		 * @param integer $intUserId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByUserId($intUserId, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByUserId query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->UserId, $intUserId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by UserId Index(es)
		 * @param integer $intUserId
		 * @return int
		*/
		public static function CountByUserId($intUserId) {
			// Call TableProject::QueryCount to perform the CountByUserId query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->UserId, $intUserId)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by MainCategoryId Index(es)
		 * @param integer $intMainCategoryId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByMainCategoryId($intMainCategoryId, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByMainCategoryId query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->MainCategoryId, $intMainCategoryId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by MainCategoryId Index(es)
		 * @param integer $intMainCategoryId
		 * @return int
		*/
		public static function CountByMainCategoryId($intMainCategoryId) {
			// Call TableProject::QueryCount to perform the CountByMainCategoryId query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->MainCategoryId, $intMainCategoryId)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by CategoryId, Status, PostDate, MainCategoryId, BudgetType Index(es)
		 * @param integer $intCategoryId
		 * @param integer $intStatus
		 * @param QDateTime $dttPostDate
		 * @param integer $intMainCategoryId
		 * @param integer $intBudgetType
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByCategoryIdStatusPostDateMainCategoryIdBudgetType($intCategoryId, $intStatus, $dttPostDate, $intMainCategoryId, $intBudgetType, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByCategoryIdStatusPostDateMainCategoryIdBudgetType query
			try {
				return TableProject::QueryArray(
					QQ::AndCondition(
					QQ::Equal(QQN::TableProject()->CategoryId, $intCategoryId),
					QQ::Equal(QQN::TableProject()->Status, $intStatus),
					QQ::Equal(QQN::TableProject()->PostDate, $dttPostDate),
					QQ::Equal(QQN::TableProject()->MainCategoryId, $intMainCategoryId),
					QQ::Equal(QQN::TableProject()->BudgetType, $intBudgetType)
					),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by CategoryId, Status, PostDate, MainCategoryId, BudgetType Index(es)
		 * @param integer $intCategoryId
		 * @param integer $intStatus
		 * @param QDateTime $dttPostDate
		 * @param integer $intMainCategoryId
		 * @param integer $intBudgetType
		 * @return int
		*/
		public static function CountByCategoryIdStatusPostDateMainCategoryIdBudgetType($intCategoryId, $intStatus, $dttPostDate, $intMainCategoryId, $intBudgetType) {
			// Call TableProject::QueryCount to perform the CountByCategoryIdStatusPostDateMainCategoryIdBudgetType query
			return TableProject::QueryCount(
				QQ::AndCondition(
				QQ::Equal(QQN::TableProject()->CategoryId, $intCategoryId),
				QQ::Equal(QQN::TableProject()->Status, $intStatus),
				QQ::Equal(QQN::TableProject()->PostDate, $dttPostDate),
				QQ::Equal(QQN::TableProject()->MainCategoryId, $intMainCategoryId),
				QQ::Equal(QQN::TableProject()->BudgetType, $intBudgetType)
				)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by BudgetType Index(es)
		 * @param integer $intBudgetType
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByBudgetType($intBudgetType, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByBudgetType query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->BudgetType, $intBudgetType),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by BudgetType Index(es)
		 * @param integer $intBudgetType
		 * @return int
		*/
		public static function CountByBudgetType($intBudgetType) {
			// Call TableProject::QueryCount to perform the CountByBudgetType query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->BudgetType, $intBudgetType)
			);
		}
			
		/**
		 * Load an array of TableProject objects,
		 * by PageView Index(es)
		 * @param integer $intPageView
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProject[]
		*/
		public static function LoadArrayByPageView($intPageView, $objOptionalClauses = null) {
			// Call TableProject::QueryArray to perform the LoadArrayByPageView query
			try {
				return TableProject::QueryArray(
					QQ::Equal(QQN::TableProject()->PageView, $intPageView),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableProjects
		 * by PageView Index(es)
		 * @param integer $intPageView
		 * @return int
		*/
		public static function CountByPageView($intPageView) {
			// Call TableProject::QueryCount to perform the CountByPageView query
			return TableProject::QueryCount(
				QQ::Equal(QQN::TableProject()->PageView, $intPageView)
			);
		}



		////////////////////////////////////////////////////
		// INDEX-BASED LOAD METHODS (Array via Many to Many)
		////////////////////////////////////////////////////




		//////////////////////////
		// SAVE, DELETE AND RELOAD
		//////////////////////////

		/**
		 * Save this TableProject
		 * @param bool $blnForceInsert
		 * @param bool $blnForceUpdate
		 * @return int
		 */
		public function Save($blnForceInsert = false, $blnForceUpdate = false) {
			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			$mixToReturn = null;

			try {
				if ((!$this->__blnRestored) || ($blnForceInsert)) {
					// Perform an INSERT query
					$objDatabase->NonQuery('
						INSERT INTO `table_project` (
							`category_id`,
							`subcategory_id`,
							`title`,
							`description`,
							`os`,
							`db`,
							`budget_min`,
							`budget_max`,
							`featured`,
							`hide_bid`,
							`hide_search`,
							`gold_only`,
							`enable`,
							`sendmail`,
							`total_bid`,
							`time_limit_date`,
							`post_date`,
							`cancel_date`,
							`close_date`,
							`end_date`,
							`status`,
							`won_user_id`,
							`average_bid`,
							`won_date`,
							`start_date`,
							`last_bid_date`,
							`progress_number`,
							`budget_exact`,
							`user_id`,
							`deadline`,
							`main_category_id`,
							`budget_type`,
							`buyer_username`,
							`provider_username`,
							`page_view`
						) VALUES (
							' . $objDatabase->SqlVariable($this->intCategoryId) . ',
							' . $objDatabase->SqlVariable($this->intSubcategoryId) . ',
							' . $objDatabase->SqlVariable($this->strTitle) . ',
							' . $objDatabase->SqlVariable($this->strDescription) . ',
							' . $objDatabase->SqlVariable($this->strOs) . ',
							' . $objDatabase->SqlVariable($this->strDb) . ',
							' . $objDatabase->SqlVariable($this->intBudgetMin) . ',
							' . $objDatabase->SqlVariable($this->intBudgetMax) . ',
							' . $objDatabase->SqlVariable($this->strFeatured) . ',
							' . $objDatabase->SqlVariable($this->strHideBid) . ',
							' . $objDatabase->SqlVariable($this->strHideSearch) . ',
							' . $objDatabase->SqlVariable($this->strGoldOnly) . ',
							' . $objDatabase->SqlVariable($this->strEnable) . ',
							' . $objDatabase->SqlVariable($this->strSendmail) . ',
							' . $objDatabase->SqlVariable($this->intTotalBid) . ',
							' . $objDatabase->SqlVariable($this->dttTimeLimitDate) . ',
							' . $objDatabase->SqlVariable($this->dttPostDate) . ',
							' . $objDatabase->SqlVariable($this->dttCancelDate) . ',
							' . $objDatabase->SqlVariable($this->dttCloseDate) . ',
							' . $objDatabase->SqlVariable($this->dttEndDate) . ',
							' . $objDatabase->SqlVariable($this->intStatus) . ',
							' . $objDatabase->SqlVariable($this->intWonUserId) . ',
							' . $objDatabase->SqlVariable($this->fltAverageBid) . ',
							' . $objDatabase->SqlVariable($this->dttWonDate) . ',
							' . $objDatabase->SqlVariable($this->dttStartDate) . ',
							' . $objDatabase->SqlVariable($this->dttLastBidDate) . ',
							' . $objDatabase->SqlVariable($this->intProgressNumber) . ',
							' . $objDatabase->SqlVariable($this->intBudgetExact) . ',
							' . $objDatabase->SqlVariable($this->intUserId) . ',
							' . $objDatabase->SqlVariable($this->dttDeadline) . ',
							' . $objDatabase->SqlVariable($this->intMainCategoryId) . ',
							' . $objDatabase->SqlVariable($this->intBudgetType) . ',
							' . $objDatabase->SqlVariable($this->strBuyerUsername) . ',
							' . $objDatabase->SqlVariable($this->strProviderUsername) . ',
							' . $objDatabase->SqlVariable($this->intPageView) . '
						)
					');

					// Update Identity column and return its value
					$mixToReturn = $this->intId = $objDatabase->InsertId('table_project', 'id');
				} else {
					// Perform an UPDATE query

					// First checking for Optimistic Locking constraints (if applicable)

					// Perform the UPDATE query
					$objDatabase->NonQuery('
						UPDATE
							`table_project`
						SET
							`category_id` = ' . $objDatabase->SqlVariable($this->intCategoryId) . ',
							`subcategory_id` = ' . $objDatabase->SqlVariable($this->intSubcategoryId) . ',
							`title` = ' . $objDatabase->SqlVariable($this->strTitle) . ',
							`description` = ' . $objDatabase->SqlVariable($this->strDescription) . ',
							`os` = ' . $objDatabase->SqlVariable($this->strOs) . ',
							`db` = ' . $objDatabase->SqlVariable($this->strDb) . ',
							`budget_min` = ' . $objDatabase->SqlVariable($this->intBudgetMin) . ',
							`budget_max` = ' . $objDatabase->SqlVariable($this->intBudgetMax) . ',
							`featured` = ' . $objDatabase->SqlVariable($this->strFeatured) . ',
							`hide_bid` = ' . $objDatabase->SqlVariable($this->strHideBid) . ',
							`hide_search` = ' . $objDatabase->SqlVariable($this->strHideSearch) . ',
							`gold_only` = ' . $objDatabase->SqlVariable($this->strGoldOnly) . ',
							`enable` = ' . $objDatabase->SqlVariable($this->strEnable) . ',
							`sendmail` = ' . $objDatabase->SqlVariable($this->strSendmail) . ',
							`total_bid` = ' . $objDatabase->SqlVariable($this->intTotalBid) . ',
							`time_limit_date` = ' . $objDatabase->SqlVariable($this->dttTimeLimitDate) . ',
							`post_date` = ' . $objDatabase->SqlVariable($this->dttPostDate) . ',
							`cancel_date` = ' . $objDatabase->SqlVariable($this->dttCancelDate) . ',
							`close_date` = ' . $objDatabase->SqlVariable($this->dttCloseDate) . ',
							`end_date` = ' . $objDatabase->SqlVariable($this->dttEndDate) . ',
							`status` = ' . $objDatabase->SqlVariable($this->intStatus) . ',
							`won_user_id` = ' . $objDatabase->SqlVariable($this->intWonUserId) . ',
							`average_bid` = ' . $objDatabase->SqlVariable($this->fltAverageBid) . ',
							`won_date` = ' . $objDatabase->SqlVariable($this->dttWonDate) . ',
							`start_date` = ' . $objDatabase->SqlVariable($this->dttStartDate) . ',
							`last_bid_date` = ' . $objDatabase->SqlVariable($this->dttLastBidDate) . ',
							`progress_number` = ' . $objDatabase->SqlVariable($this->intProgressNumber) . ',
							`budget_exact` = ' . $objDatabase->SqlVariable($this->intBudgetExact) . ',
							`user_id` = ' . $objDatabase->SqlVariable($this->intUserId) . ',
							`deadline` = ' . $objDatabase->SqlVariable($this->dttDeadline) . ',
							`main_category_id` = ' . $objDatabase->SqlVariable($this->intMainCategoryId) . ',
							`budget_type` = ' . $objDatabase->SqlVariable($this->intBudgetType) . ',
							`buyer_username` = ' . $objDatabase->SqlVariable($this->strBuyerUsername) . ',
							`provider_username` = ' . $objDatabase->SqlVariable($this->strProviderUsername) . ',
							`page_view` = ' . $objDatabase->SqlVariable($this->intPageView) . '
						WHERE
							`id` = ' . $objDatabase->SqlVariable($this->intId) . '
					');
				}

			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Update __blnRestored and any Non-Identity PK Columns (if applicable)
			$this->__blnRestored = true;


			// Return 
			return $mixToReturn;
		}

		/**
		 * Delete this TableProject
		 * @return void
		 */
		public function Delete() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Cannot delete this TableProject with an unset primary key.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();


			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($this->intId) . '');
		}

		/**
		 * Delete all TableProjects
		 * @return void
		 */
		public static function DeleteAll() {
			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project`');
		}

		/**
		 * Truncate table_project table
		 * @return void
		 */
		public static function Truncate() {
			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the Query
			$objDatabase->NonQuery('
				TRUNCATE `table_project`');
		}

		/**
		 * Reload this TableProject from the database.
		 * @return void
		 */
		public function Reload() {
			// Make sure we are actually Restored from the database
			if (!$this->__blnRestored)
				throw new QCallerException('Cannot call Reload() on a new, unsaved TableProject object.');

			// Reload the Object
			$objReloaded = TableProject::Load($this->intId);

			// Update $this's local variables to match
			$this->intCategoryId = $objReloaded->intCategoryId;
			$this->intSubcategoryId = $objReloaded->intSubcategoryId;
			$this->strTitle = $objReloaded->strTitle;
			$this->strDescription = $objReloaded->strDescription;
			$this->strOs = $objReloaded->strOs;
			$this->strDb = $objReloaded->strDb;
			$this->intBudgetMin = $objReloaded->intBudgetMin;
			$this->intBudgetMax = $objReloaded->intBudgetMax;
			$this->strFeatured = $objReloaded->strFeatured;
			$this->strHideBid = $objReloaded->strHideBid;
			$this->strHideSearch = $objReloaded->strHideSearch;
			$this->strGoldOnly = $objReloaded->strGoldOnly;
			$this->strEnable = $objReloaded->strEnable;
			$this->strSendmail = $objReloaded->strSendmail;
			$this->intTotalBid = $objReloaded->intTotalBid;
			$this->dttTimeLimitDate = $objReloaded->dttTimeLimitDate;
			$this->dttPostDate = $objReloaded->dttPostDate;
			$this->dttCancelDate = $objReloaded->dttCancelDate;
			$this->dttCloseDate = $objReloaded->dttCloseDate;
			$this->dttEndDate = $objReloaded->dttEndDate;
			$this->intStatus = $objReloaded->intStatus;
			$this->WonUserId = $objReloaded->WonUserId;
			$this->fltAverageBid = $objReloaded->fltAverageBid;
			$this->dttWonDate = $objReloaded->dttWonDate;
			$this->dttStartDate = $objReloaded->dttStartDate;
			$this->dttLastBidDate = $objReloaded->dttLastBidDate;
			$this->intProgressNumber = $objReloaded->intProgressNumber;
			$this->intBudgetExact = $objReloaded->intBudgetExact;
			$this->UserId = $objReloaded->UserId;
			$this->dttDeadline = $objReloaded->dttDeadline;
			$this->intMainCategoryId = $objReloaded->intMainCategoryId;
			$this->intBudgetType = $objReloaded->intBudgetType;
			$this->strBuyerUsername = $objReloaded->strBuyerUsername;
			$this->strProviderUsername = $objReloaded->strProviderUsername;
			$this->intPageView = $objReloaded->intPageView;
		}



		////////////////////
		// PUBLIC OVERRIDERS
		////////////////////

				/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				///////////////////
				// Member Variables
				///////////////////
				case 'Id':
					/**
					 * Gets the value for intId (Read-Only PK)
					 * @return integer
					 */
					return $this->intId;

				case 'CategoryId':
					/**
					 * Gets the value for intCategoryId (Not Null)
					 * @return integer
					 */
					return $this->intCategoryId;

				case 'SubcategoryId':
					/**
					 * Gets the value for intSubcategoryId 
					 * @return integer
					 */
					return $this->intSubcategoryId;

				case 'Title':
					/**
					 * Gets the value for strTitle (Not Null)
					 * @return string
					 */
					return $this->strTitle;

				case 'Description':
					/**
					 * Gets the value for strDescription 
					 * @return string
					 */
					return $this->strDescription;

				case 'Os':
					/**
					 * Gets the value for strOs 
					 * @return string
					 */
					return $this->strOs;

				case 'Db':
					/**
					 * Gets the value for strDb 
					 * @return string
					 */
					return $this->strDb;

				case 'BudgetMin':
					/**
					 * Gets the value for intBudgetMin 
					 * @return integer
					 */
					return $this->intBudgetMin;

				case 'BudgetMax':
					/**
					 * Gets the value for intBudgetMax 
					 * @return integer
					 */
					return $this->intBudgetMax;

				case 'Featured':
					/**
					 * Gets the value for strFeatured (Not Null)
					 * @return string
					 */
					return $this->strFeatured;

				case 'HideBid':
					/**
					 * Gets the value for strHideBid (Not Null)
					 * @return string
					 */
					return $this->strHideBid;

				case 'HideSearch':
					/**
					 * Gets the value for strHideSearch (Not Null)
					 * @return string
					 */
					return $this->strHideSearch;

				case 'GoldOnly':
					/**
					 * Gets the value for strGoldOnly (Not Null)
					 * @return string
					 */
					return $this->strGoldOnly;

				case 'Enable':
					/**
					 * Gets the value for strEnable (Not Null)
					 * @return string
					 */
					return $this->strEnable;

				case 'Sendmail':
					/**
					 * Gets the value for strSendmail (Not Null)
					 * @return string
					 */
					return $this->strSendmail;

				case 'TotalBid':
					/**
					 * Gets the value for intTotalBid (Not Null)
					 * @return integer
					 */
					return $this->intTotalBid;

				case 'TimeLimitDate':
					/**
					 * Gets the value for dttTimeLimitDate 
					 * @return QDateTime
					 */
					return $this->dttTimeLimitDate;

				case 'PostDate':
					/**
					 * Gets the value for dttPostDate 
					 * @return QDateTime
					 */
					return $this->dttPostDate;

				case 'CancelDate':
					/**
					 * Gets the value for dttCancelDate 
					 * @return QDateTime
					 */
					return $this->dttCancelDate;

				case 'CloseDate':
					/**
					 * Gets the value for dttCloseDate 
					 * @return QDateTime
					 */
					return $this->dttCloseDate;

				case 'EndDate':
					/**
					 * Gets the value for dttEndDate 
					 * @return QDateTime
					 */
					return $this->dttEndDate;

				case 'Status':
					/**
					 * Gets the value for intStatus (Not Null)
					 * @return integer
					 */
					return $this->intStatus;

				case 'WonUserId':
					/**
					 * Gets the value for intWonUserId 
					 * @return integer
					 */
					return $this->intWonUserId;

				case 'AverageBid':
					/**
					 * Gets the value for fltAverageBid 
					 * @return double
					 */
					return $this->fltAverageBid;

				case 'WonDate':
					/**
					 * Gets the value for dttWonDate 
					 * @return QDateTime
					 */
					return $this->dttWonDate;

				case 'StartDate':
					/**
					 * Gets the value for dttStartDate 
					 * @return QDateTime
					 */
					return $this->dttStartDate;

				case 'LastBidDate':
					/**
					 * Gets the value for dttLastBidDate 
					 * @return QDateTime
					 */
					return $this->dttLastBidDate;

				case 'ProgressNumber':
					/**
					 * Gets the value for intProgressNumber 
					 * @return integer
					 */
					return $this->intProgressNumber;

				case 'BudgetExact':
					/**
					 * Gets the value for intBudgetExact 
					 * @return integer
					 */
					return $this->intBudgetExact;

				case 'UserId':
					/**
					 * Gets the value for intUserId (Not Null)
					 * @return integer
					 */
					return $this->intUserId;

				case 'Deadline':
					/**
					 * Gets the value for dttDeadline 
					 * @return QDateTime
					 */
					return $this->dttDeadline;

				case 'MainCategoryId':
					/**
					 * Gets the value for intMainCategoryId 
					 * @return integer
					 */
					return $this->intMainCategoryId;

				case 'BudgetType':
					/**
					 * Gets the value for intBudgetType (Not Null)
					 * @return integer
					 */
					return $this->intBudgetType;

				case 'BuyerUsername':
					/**
					 * Gets the value for strBuyerUsername 
					 * @return string
					 */
					return $this->strBuyerUsername;

				case 'ProviderUsername':
					/**
					 * Gets the value for strProviderUsername 
					 * @return string
					 */
					return $this->strProviderUsername;

				case 'PageView':
					/**
					 * Gets the value for intPageView 
					 * @return integer
					 */
					return $this->intPageView;


				///////////////////
				// Member Objects
				///////////////////
				case 'WonUser':
					/**
					 * Gets the value for the TableUserProject object referenced by intWonUserId 
					 * @return TableUserProject
					 */
					try {
						if ((!$this->objWonUser) && (!is_null($this->intWonUserId)))
							$this->objWonUser = TableUserProject::Load($this->intWonUserId);
						return $this->objWonUser;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'User':
					/**
					 * Gets the value for the TableUserProject object referenced by intUserId (Not Null)
					 * @return TableUserProject
					 */
					try {
						if ((!$this->objUser) && (!is_null($this->intUserId)))
							$this->objUser = TableUserProject::Load($this->intUserId);
						return $this->objUser;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}


				////////////////////////////
				// Virtual Object References (Many to Many and Reverse References)
				// (If restored via a "Many-to" expansion)
				////////////////////////////

				case '_TableEscrowAsProject':
					/**
					 * Gets the value for the private _objTableEscrowAsProject (Read-Only)
					 * if set due to an expansion on the table_escrow.project_id reverse relationship
					 * @return TableEscrow
					 */
					return $this->_objTableEscrowAsProject;

				case '_TableEscrowAsProjectArray':
					/**
					 * Gets the value for the private _objTableEscrowAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_escrow.project_id reverse relationship
					 * @return TableEscrow[]
					 */
					return (array) $this->_objTableEscrowAsProjectArray;

				case '_TableFileTransferAsProject':
					/**
					 * Gets the value for the private _objTableFileTransferAsProject (Read-Only)
					 * if set due to an expansion on the table_file_transfer.project_id reverse relationship
					 * @return TableFileTransfer
					 */
					return $this->_objTableFileTransferAsProject;

				case '_TableFileTransferAsProjectArray':
					/**
					 * Gets the value for the private _objTableFileTransferAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_file_transfer.project_id reverse relationship
					 * @return TableFileTransfer[]
					 */
					return (array) $this->_objTableFileTransferAsProjectArray;

				case '_TablePrivateMessageAsProject':
					/**
					 * Gets the value for the private _objTablePrivateMessageAsProject (Read-Only)
					 * if set due to an expansion on the table_private_message.project_id reverse relationship
					 * @return TablePrivateMessage
					 */
					return $this->_objTablePrivateMessageAsProject;

				case '_TablePrivateMessageAsProjectArray':
					/**
					 * Gets the value for the private _objTablePrivateMessageAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_private_message.project_id reverse relationship
					 * @return TablePrivateMessage[]
					 */
					return (array) $this->_objTablePrivateMessageAsProjectArray;

				case '_TableProjectAgreementAsProject':
					/**
					 * Gets the value for the private _objTableProjectAgreementAsProject (Read-Only)
					 * if set due to an expansion on the table_project_agreement.project_id reverse relationship
					 * @return TableProjectAgreement
					 */
					return $this->_objTableProjectAgreementAsProject;

				case '_TableProjectAgreementAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectAgreementAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_agreement.project_id reverse relationship
					 * @return TableProjectAgreement[]
					 */
					return (array) $this->_objTableProjectAgreementAsProjectArray;

				case '_TableProjectAttachmentAsProject':
					/**
					 * Gets the value for the private _objTableProjectAttachmentAsProject (Read-Only)
					 * if set due to an expansion on the table_project_attachment.project_id reverse relationship
					 * @return TableProjectAttachment
					 */
					return $this->_objTableProjectAttachmentAsProject;

				case '_TableProjectAttachmentAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectAttachmentAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_attachment.project_id reverse relationship
					 * @return TableProjectAttachment[]
					 */
					return (array) $this->_objTableProjectAttachmentAsProjectArray;

				case '_TableProjectBidAsProject':
					/**
					 * Gets the value for the private _objTableProjectBidAsProject (Read-Only)
					 * if set due to an expansion on the table_project_bid.project_id reverse relationship
					 * @return TableProjectBid
					 */
					return $this->_objTableProjectBidAsProject;

				case '_TableProjectBidAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectBidAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_bid.project_id reverse relationship
					 * @return TableProjectBid[]
					 */
					return (array) $this->_objTableProjectBidAsProjectArray;

				case '_TableProjectCancelAsProject':
					/**
					 * Gets the value for the private _objTableProjectCancelAsProject (Read-Only)
					 * if set due to an expansion on the table_project_cancel.project_id reverse relationship
					 * @return TableProjectCancel
					 */
					return $this->_objTableProjectCancelAsProject;

				case '_TableProjectCancelAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectCancelAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_cancel.project_id reverse relationship
					 * @return TableProjectCancel[]
					 */
					return (array) $this->_objTableProjectCancelAsProjectArray;

				case '_TableProjectEditAsProject':
					/**
					 * Gets the value for the private _objTableProjectEditAsProject (Read-Only)
					 * if set due to an expansion on the table_project_edit.project_id reverse relationship
					 * @return TableProjectEdit
					 */
					return $this->_objTableProjectEditAsProject;

				case '_TableProjectEditAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectEditAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_edit.project_id reverse relationship
					 * @return TableProjectEdit[]
					 */
					return (array) $this->_objTableProjectEditAsProjectArray;

				case '_TableProjectKeywordAsProject':
					/**
					 * Gets the value for the private _objTableProjectKeywordAsProject (Read-Only)
					 * if set due to an expansion on the table_project_keyword.project_id reverse relationship
					 * @return TableProjectKeyword
					 */
					return $this->_objTableProjectKeywordAsProject;

				case '_TableProjectKeywordAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectKeywordAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_keyword.project_id reverse relationship
					 * @return TableProjectKeyword[]
					 */
					return (array) $this->_objTableProjectKeywordAsProjectArray;

				case '_TableProjectMessageAsProject':
					/**
					 * Gets the value for the private _objTableProjectMessageAsProject (Read-Only)
					 * if set due to an expansion on the table_project_message.project_id reverse relationship
					 * @return TableProjectMessage
					 */
					return $this->_objTableProjectMessageAsProject;

				case '_TableProjectMessageAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectMessageAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_message.project_id reverse relationship
					 * @return TableProjectMessage[]
					 */
					return (array) $this->_objTableProjectMessageAsProjectArray;

				case '_TableProjectRequestCancelAsProject':
					/**
					 * Gets the value for the private _objTableProjectRequestCancelAsProject (Read-Only)
					 * if set due to an expansion on the table_project_request_cancel.project_id reverse relationship
					 * @return TableProjectRequestCancel
					 */
					return $this->_objTableProjectRequestCancelAsProject;

				case '_TableProjectRequestCancelAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectRequestCancelAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_request_cancel.project_id reverse relationship
					 * @return TableProjectRequestCancel[]
					 */
					return (array) $this->_objTableProjectRequestCancelAsProjectArray;

				case '_TableProjectRequestCompleteAsProject':
					/**
					 * Gets the value for the private _objTableProjectRequestCompleteAsProject (Read-Only)
					 * if set due to an expansion on the table_project_request_complete.project_id reverse relationship
					 * @return TableProjectRequestComplete
					 */
					return $this->_objTableProjectRequestCompleteAsProject;

				case '_TableProjectRequestCompleteAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectRequestCompleteAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_request_complete.project_id reverse relationship
					 * @return TableProjectRequestComplete[]
					 */
					return (array) $this->_objTableProjectRequestCompleteAsProjectArray;

				case '_TableProjectReviewByBuyerAsProject':
					/**
					 * Gets the value for the private _objTableProjectReviewByBuyerAsProject (Read-Only)
					 * if set due to an expansion on the table_project_review_by_buyer.project_id reverse relationship
					 * @return TableProjectReviewByBuyer
					 */
					return $this->_objTableProjectReviewByBuyerAsProject;

				case '_TableProjectReviewByBuyerAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectReviewByBuyerAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_review_by_buyer.project_id reverse relationship
					 * @return TableProjectReviewByBuyer[]
					 */
					return (array) $this->_objTableProjectReviewByBuyerAsProjectArray;

				case '_TableProjectReviewByProviderAsProject':
					/**
					 * Gets the value for the private _objTableProjectReviewByProviderAsProject (Read-Only)
					 * if set due to an expansion on the table_project_review_by_provider.project_id reverse relationship
					 * @return TableProjectReviewByProvider
					 */
					return $this->_objTableProjectReviewByProviderAsProject;

				case '_TableProjectReviewByProviderAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectReviewByProviderAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_review_by_provider.project_id reverse relationship
					 * @return TableProjectReviewByProvider[]
					 */
					return (array) $this->_objTableProjectReviewByProviderAsProjectArray;

				case '_TableProjectWonAsProject':
					/**
					 * Gets the value for the private _objTableProjectWonAsProject (Read-Only)
					 * if set due to an expansion on the table_project_won.project_id reverse relationship
					 * @return TableProjectWon
					 */
					return $this->_objTableProjectWonAsProject;

				case '_TableProjectWonAsProjectArray':
					/**
					 * Gets the value for the private _objTableProjectWonAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_project_won.project_id reverse relationship
					 * @return TableProjectWon[]
					 */
					return (array) $this->_objTableProjectWonAsProjectArray;

				case '_TableTransactionAsProject':
					/**
					 * Gets the value for the private _objTableTransactionAsProject (Read-Only)
					 * if set due to an expansion on the table_transaction.project_id reverse relationship
					 * @return TableTransaction
					 */
					return $this->_objTableTransactionAsProject;

				case '_TableTransactionAsProjectArray':
					/**
					 * Gets the value for the private _objTableTransactionAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_transaction.project_id reverse relationship
					 * @return TableTransaction[]
					 */
					return (array) $this->_objTableTransactionAsProjectArray;

				case '_TableWatchListAsProject':
					/**
					 * Gets the value for the private _objTableWatchListAsProject (Read-Only)
					 * if set due to an expansion on the table_watch_list.project_id reverse relationship
					 * @return TableWatchList
					 */
					return $this->_objTableWatchListAsProject;

				case '_TableWatchListAsProjectArray':
					/**
					 * Gets the value for the private _objTableWatchListAsProjectArray (Read-Only)
					 * if set due to an ExpandAsArray on the table_watch_list.project_id reverse relationship
					 * @return TableWatchList[]
					 */
					return (array) $this->_objTableWatchListAsProjectArray;


				case '__Restored':
					return $this->__blnRestored;

				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

				/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			switch ($strName) {
				///////////////////
				// Member Variables
				///////////////////
				case 'CategoryId':
					/**
					 * Sets the value for intCategoryId (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intCategoryId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'SubcategoryId':
					/**
					 * Sets the value for intSubcategoryId 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intSubcategoryId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Title':
					/**
					 * Sets the value for strTitle (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strTitle = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Description':
					/**
					 * Sets the value for strDescription 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strDescription = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Os':
					/**
					 * Sets the value for strOs 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strOs = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Db':
					/**
					 * Sets the value for strDb 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strDb = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BudgetMin':
					/**
					 * Sets the value for intBudgetMin 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intBudgetMin = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BudgetMax':
					/**
					 * Sets the value for intBudgetMax 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intBudgetMax = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Featured':
					/**
					 * Sets the value for strFeatured (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strFeatured = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'HideBid':
					/**
					 * Sets the value for strHideBid (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strHideBid = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'HideSearch':
					/**
					 * Sets the value for strHideSearch (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strHideSearch = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'GoldOnly':
					/**
					 * Sets the value for strGoldOnly (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strGoldOnly = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Enable':
					/**
					 * Sets the value for strEnable (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strEnable = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Sendmail':
					/**
					 * Sets the value for strSendmail (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strSendmail = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'TotalBid':
					/**
					 * Sets the value for intTotalBid (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intTotalBid = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'TimeLimitDate':
					/**
					 * Sets the value for dttTimeLimitDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttTimeLimitDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'PostDate':
					/**
					 * Sets the value for dttPostDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttPostDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'CancelDate':
					/**
					 * Sets the value for dttCancelDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttCancelDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'CloseDate':
					/**
					 * Sets the value for dttCloseDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttCloseDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'EndDate':
					/**
					 * Sets the value for dttEndDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttEndDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Status':
					/**
					 * Sets the value for intStatus (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intStatus = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'WonUserId':
					/**
					 * Sets the value for intWonUserId 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						$this->objWonUser = null;
						return ($this->intWonUserId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'AverageBid':
					/**
					 * Sets the value for fltAverageBid 
					 * @param double $mixValue
					 * @return double
					 */
					try {
						return ($this->fltAverageBid = QType::Cast($mixValue, QType::Float));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'WonDate':
					/**
					 * Sets the value for dttWonDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttWonDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'StartDate':
					/**
					 * Sets the value for dttStartDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttStartDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'LastBidDate':
					/**
					 * Sets the value for dttLastBidDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttLastBidDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ProgressNumber':
					/**
					 * Sets the value for intProgressNumber 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intProgressNumber = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BudgetExact':
					/**
					 * Sets the value for intBudgetExact 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intBudgetExact = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'UserId':
					/**
					 * Sets the value for intUserId (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						$this->objUser = null;
						return ($this->intUserId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Deadline':
					/**
					 * Sets the value for dttDeadline 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttDeadline = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'MainCategoryId':
					/**
					 * Sets the value for intMainCategoryId 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intMainCategoryId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BudgetType':
					/**
					 * Sets the value for intBudgetType (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intBudgetType = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BuyerUsername':
					/**
					 * Sets the value for strBuyerUsername 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBuyerUsername = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ProviderUsername':
					/**
					 * Sets the value for strProviderUsername 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strProviderUsername = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'PageView':
					/**
					 * Sets the value for intPageView 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intPageView = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}


				///////////////////
				// Member Objects
				///////////////////
				case 'WonUser':
					/**
					 * Sets the value for the TableUserProject object referenced by intWonUserId 
					 * @param TableUserProject $mixValue
					 * @return TableUserProject
					 */
					if (is_null($mixValue)) {
						$this->intWonUserId = null;
						$this->objWonUser = null;
						return null;
					} else {
						// Make sure $mixValue actually is a TableUserProject object
						try {
							$mixValue = QType::Cast($mixValue, 'TableUserProject');
						} catch (QInvalidCastException $objExc) {
							$objExc->IncrementOffset();
							throw $objExc;
						} 

						// Make sure $mixValue is a SAVED TableUserProject object
						if (is_null($mixValue->Id))
							throw new QCallerException('Unable to set an unsaved WonUser for this TableProject');

						// Update Local Member Variables
						$this->objWonUser = $mixValue;
						$this->intWonUserId = $mixValue->Id;

						// Return $mixValue
						return $mixValue;
					}
					break;

				case 'User':
					/**
					 * Sets the value for the TableUserProject object referenced by intUserId (Not Null)
					 * @param TableUserProject $mixValue
					 * @return TableUserProject
					 */
					if (is_null($mixValue)) {
						$this->intUserId = null;
						$this->objUser = null;
						return null;
					} else {
						// Make sure $mixValue actually is a TableUserProject object
						try {
							$mixValue = QType::Cast($mixValue, 'TableUserProject');
						} catch (QInvalidCastException $objExc) {
							$objExc->IncrementOffset();
							throw $objExc;
						} 

						// Make sure $mixValue is a SAVED TableUserProject object
						if (is_null($mixValue->Id))
							throw new QCallerException('Unable to set an unsaved User for this TableProject');

						// Update Local Member Variables
						$this->objUser = $mixValue;
						$this->intUserId = $mixValue->Id;

						// Return $mixValue
						return $mixValue;
					}
					break;

				default:
					try {
						return parent::__set($strName, $mixValue);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Lookup a VirtualAttribute value (if applicable).  Returns NULL if none found.
		 * @param string $strName
		 * @return string
		 */
		public function GetVirtualAttribute($strName) {
			if (array_key_exists($strName, $this->__strVirtualAttributeArray))
				return $this->__strVirtualAttributeArray[$strName];
			return null;
		}



		///////////////////////////////
		// ASSOCIATED OBJECTS' METHODS
		///////////////////////////////

			
		
		// Related Objects' Methods for TableEscrowAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableEscrowsAsProject as an array of TableEscrow objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableEscrow[]
		*/ 
		public function GetTableEscrowAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableEscrow::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableEscrowsAsProject
		 * @return int
		*/ 
		public function CountTableEscrowsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableEscrow::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableEscrowAsProject
		 * @param TableEscrow $objTableEscrow
		 * @return void
		*/ 
		public function AssociateTableEscrowAsProject(TableEscrow $objTableEscrow) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableEscrowAsProject on this unsaved TableProject.');
			if ((is_null($objTableEscrow->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableEscrowAsProject on this TableProject with an unsaved TableEscrow.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_escrow`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableEscrow->Id) . '
			');
		}

		/**
		 * Unassociates a TableEscrowAsProject
		 * @param TableEscrow $objTableEscrow
		 * @return void
		*/ 
		public function UnassociateTableEscrowAsProject(TableEscrow $objTableEscrow) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableEscrowAsProject on this unsaved TableProject.');
			if ((is_null($objTableEscrow->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableEscrowAsProject on this TableProject with an unsaved TableEscrow.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_escrow`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableEscrow->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableEscrowsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableEscrowsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableEscrowAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_escrow`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableEscrowAsProject
		 * @param TableEscrow $objTableEscrow
		 * @return void
		*/ 
		public function DeleteAssociatedTableEscrowAsProject(TableEscrow $objTableEscrow) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableEscrowAsProject on this unsaved TableProject.');
			if ((is_null($objTableEscrow->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableEscrowAsProject on this TableProject with an unsaved TableEscrow.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_escrow`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableEscrow->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableEscrowsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableEscrowsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableEscrowAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_escrow`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableFileTransferAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableFileTransfersAsProject as an array of TableFileTransfer objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableFileTransfer[]
		*/ 
		public function GetTableFileTransferAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableFileTransfer::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableFileTransfersAsProject
		 * @return int
		*/ 
		public function CountTableFileTransfersAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableFileTransfer::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableFileTransferAsProject
		 * @param TableFileTransfer $objTableFileTransfer
		 * @return void
		*/ 
		public function AssociateTableFileTransferAsProject(TableFileTransfer $objTableFileTransfer) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableFileTransferAsProject on this unsaved TableProject.');
			if ((is_null($objTableFileTransfer->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableFileTransferAsProject on this TableProject with an unsaved TableFileTransfer.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_file_transfer`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableFileTransfer->Id) . '
			');
		}

		/**
		 * Unassociates a TableFileTransferAsProject
		 * @param TableFileTransfer $objTableFileTransfer
		 * @return void
		*/ 
		public function UnassociateTableFileTransferAsProject(TableFileTransfer $objTableFileTransfer) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableFileTransferAsProject on this unsaved TableProject.');
			if ((is_null($objTableFileTransfer->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableFileTransferAsProject on this TableProject with an unsaved TableFileTransfer.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_file_transfer`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableFileTransfer->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableFileTransfersAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableFileTransfersAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableFileTransferAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_file_transfer`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableFileTransferAsProject
		 * @param TableFileTransfer $objTableFileTransfer
		 * @return void
		*/ 
		public function DeleteAssociatedTableFileTransferAsProject(TableFileTransfer $objTableFileTransfer) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableFileTransferAsProject on this unsaved TableProject.');
			if ((is_null($objTableFileTransfer->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableFileTransferAsProject on this TableProject with an unsaved TableFileTransfer.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_file_transfer`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableFileTransfer->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableFileTransfersAsProject
		 * @return void
		*/ 
		public function DeleteAllTableFileTransfersAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableFileTransferAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_file_transfer`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TablePrivateMessageAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TablePrivateMessagesAsProject as an array of TablePrivateMessage objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TablePrivateMessage[]
		*/ 
		public function GetTablePrivateMessageAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TablePrivateMessage::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TablePrivateMessagesAsProject
		 * @return int
		*/ 
		public function CountTablePrivateMessagesAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TablePrivateMessage::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TablePrivateMessageAsProject
		 * @param TablePrivateMessage $objTablePrivateMessage
		 * @return void
		*/ 
		public function AssociateTablePrivateMessageAsProject(TablePrivateMessage $objTablePrivateMessage) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTablePrivateMessageAsProject on this unsaved TableProject.');
			if ((is_null($objTablePrivateMessage->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTablePrivateMessageAsProject on this TableProject with an unsaved TablePrivateMessage.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_private_message`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTablePrivateMessage->Id) . '
			');
		}

		/**
		 * Unassociates a TablePrivateMessageAsProject
		 * @param TablePrivateMessage $objTablePrivateMessage
		 * @return void
		*/ 
		public function UnassociateTablePrivateMessageAsProject(TablePrivateMessage $objTablePrivateMessage) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTablePrivateMessageAsProject on this unsaved TableProject.');
			if ((is_null($objTablePrivateMessage->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTablePrivateMessageAsProject on this TableProject with an unsaved TablePrivateMessage.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_private_message`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTablePrivateMessage->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TablePrivateMessagesAsProject
		 * @return void
		*/ 
		public function UnassociateAllTablePrivateMessagesAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTablePrivateMessageAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_private_message`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TablePrivateMessageAsProject
		 * @param TablePrivateMessage $objTablePrivateMessage
		 * @return void
		*/ 
		public function DeleteAssociatedTablePrivateMessageAsProject(TablePrivateMessage $objTablePrivateMessage) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTablePrivateMessageAsProject on this unsaved TableProject.');
			if ((is_null($objTablePrivateMessage->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTablePrivateMessageAsProject on this TableProject with an unsaved TablePrivateMessage.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_private_message`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTablePrivateMessage->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TablePrivateMessagesAsProject
		 * @return void
		*/ 
		public function DeleteAllTablePrivateMessagesAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTablePrivateMessageAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_private_message`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectAgreementAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectAgreementsAsProject as an array of TableProjectAgreement objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectAgreement[]
		*/ 
		public function GetTableProjectAgreementAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectAgreement::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectAgreementsAsProject
		 * @return int
		*/ 
		public function CountTableProjectAgreementsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectAgreement::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectAgreementAsProject
		 * @param TableProjectAgreement $objTableProjectAgreement
		 * @return void
		*/ 
		public function AssociateTableProjectAgreementAsProject(TableProjectAgreement $objTableProjectAgreement) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectAgreementAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectAgreement->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectAgreementAsProject on this TableProject with an unsaved TableProjectAgreement.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_agreement`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectAgreement->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectAgreementAsProject
		 * @param TableProjectAgreement $objTableProjectAgreement
		 * @return void
		*/ 
		public function UnassociateTableProjectAgreementAsProject(TableProjectAgreement $objTableProjectAgreement) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAgreementAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectAgreement->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAgreementAsProject on this TableProject with an unsaved TableProjectAgreement.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_agreement`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectAgreement->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectAgreementsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectAgreementsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAgreementAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_agreement`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectAgreementAsProject
		 * @param TableProjectAgreement $objTableProjectAgreement
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectAgreementAsProject(TableProjectAgreement $objTableProjectAgreement) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAgreementAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectAgreement->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAgreementAsProject on this TableProject with an unsaved TableProjectAgreement.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_agreement`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectAgreement->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectAgreementsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectAgreementsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAgreementAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_agreement`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectAttachmentAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectAttachmentsAsProject as an array of TableProjectAttachment objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectAttachment[]
		*/ 
		public function GetTableProjectAttachmentAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectAttachment::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectAttachmentsAsProject
		 * @return int
		*/ 
		public function CountTableProjectAttachmentsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectAttachment::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectAttachmentAsProject
		 * @param TableProjectAttachment $objTableProjectAttachment
		 * @return void
		*/ 
		public function AssociateTableProjectAttachmentAsProject(TableProjectAttachment $objTableProjectAttachment) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectAttachmentAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectAttachment->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectAttachmentAsProject on this TableProject with an unsaved TableProjectAttachment.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_attachment`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectAttachment->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectAttachmentAsProject
		 * @param TableProjectAttachment $objTableProjectAttachment
		 * @return void
		*/ 
		public function UnassociateTableProjectAttachmentAsProject(TableProjectAttachment $objTableProjectAttachment) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAttachmentAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectAttachment->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAttachmentAsProject on this TableProject with an unsaved TableProjectAttachment.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_attachment`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectAttachment->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectAttachmentsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectAttachmentsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAttachmentAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_attachment`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectAttachmentAsProject
		 * @param TableProjectAttachment $objTableProjectAttachment
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectAttachmentAsProject(TableProjectAttachment $objTableProjectAttachment) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAttachmentAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectAttachment->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAttachmentAsProject on this TableProject with an unsaved TableProjectAttachment.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_attachment`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectAttachment->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectAttachmentsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectAttachmentsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectAttachmentAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_attachment`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectBidAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectBidsAsProject as an array of TableProjectBid objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectBid[]
		*/ 
		public function GetTableProjectBidAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectBid::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectBidsAsProject
		 * @return int
		*/ 
		public function CountTableProjectBidsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectBid::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectBidAsProject
		 * @param TableProjectBid $objTableProjectBid
		 * @return void
		*/ 
		public function AssociateTableProjectBidAsProject(TableProjectBid $objTableProjectBid) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectBidAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectBid->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectBidAsProject on this TableProject with an unsaved TableProjectBid.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_bid`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectBid->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectBidAsProject
		 * @param TableProjectBid $objTableProjectBid
		 * @return void
		*/ 
		public function UnassociateTableProjectBidAsProject(TableProjectBid $objTableProjectBid) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectBidAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectBid->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectBidAsProject on this TableProject with an unsaved TableProjectBid.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_bid`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectBid->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectBidsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectBidsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectBidAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_bid`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectBidAsProject
		 * @param TableProjectBid $objTableProjectBid
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectBidAsProject(TableProjectBid $objTableProjectBid) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectBidAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectBid->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectBidAsProject on this TableProject with an unsaved TableProjectBid.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_bid`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectBid->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectBidsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectBidsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectBidAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_bid`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectCancelAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectCancelsAsProject as an array of TableProjectCancel objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectCancel[]
		*/ 
		public function GetTableProjectCancelAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectCancel::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectCancelsAsProject
		 * @return int
		*/ 
		public function CountTableProjectCancelsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectCancel::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectCancelAsProject
		 * @param TableProjectCancel $objTableProjectCancel
		 * @return void
		*/ 
		public function AssociateTableProjectCancelAsProject(TableProjectCancel $objTableProjectCancel) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectCancelAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectCancel->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectCancelAsProject on this TableProject with an unsaved TableProjectCancel.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_cancel`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectCancel->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectCancelAsProject
		 * @param TableProjectCancel $objTableProjectCancel
		 * @return void
		*/ 
		public function UnassociateTableProjectCancelAsProject(TableProjectCancel $objTableProjectCancel) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectCancelAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectCancel->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectCancelAsProject on this TableProject with an unsaved TableProjectCancel.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_cancel`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectCancel->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectCancelsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectCancelsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectCancelAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_cancel`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectCancelAsProject
		 * @param TableProjectCancel $objTableProjectCancel
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectCancelAsProject(TableProjectCancel $objTableProjectCancel) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectCancelAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectCancel->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectCancelAsProject on this TableProject with an unsaved TableProjectCancel.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_cancel`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectCancel->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectCancelsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectCancelsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectCancelAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_cancel`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectEditAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectEditsAsProject as an array of TableProjectEdit objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectEdit[]
		*/ 
		public function GetTableProjectEditAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectEdit::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectEditsAsProject
		 * @return int
		*/ 
		public function CountTableProjectEditsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectEdit::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectEditAsProject
		 * @param TableProjectEdit $objTableProjectEdit
		 * @return void
		*/ 
		public function AssociateTableProjectEditAsProject(TableProjectEdit $objTableProjectEdit) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectEditAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectEdit->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectEditAsProject on this TableProject with an unsaved TableProjectEdit.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_edit`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectEdit->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectEditAsProject
		 * @param TableProjectEdit $objTableProjectEdit
		 * @return void
		*/ 
		public function UnassociateTableProjectEditAsProject(TableProjectEdit $objTableProjectEdit) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectEditAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectEdit->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectEditAsProject on this TableProject with an unsaved TableProjectEdit.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_edit`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectEdit->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectEditsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectEditsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectEditAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_edit`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectEditAsProject
		 * @param TableProjectEdit $objTableProjectEdit
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectEditAsProject(TableProjectEdit $objTableProjectEdit) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectEditAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectEdit->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectEditAsProject on this TableProject with an unsaved TableProjectEdit.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_edit`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectEdit->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectEditsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectEditsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectEditAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_edit`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectKeywordAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectKeywordsAsProject as an array of TableProjectKeyword objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectKeyword[]
		*/ 
		public function GetTableProjectKeywordAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectKeyword::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectKeywordsAsProject
		 * @return int
		*/ 
		public function CountTableProjectKeywordsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectKeyword::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectKeywordAsProject
		 * @param TableProjectKeyword $objTableProjectKeyword
		 * @return void
		*/ 
		public function AssociateTableProjectKeywordAsProject(TableProjectKeyword $objTableProjectKeyword) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectKeywordAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectKeyword->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectKeywordAsProject on this TableProject with an unsaved TableProjectKeyword.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_keyword`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectKeyword->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectKeywordAsProject
		 * @param TableProjectKeyword $objTableProjectKeyword
		 * @return void
		*/ 
		public function UnassociateTableProjectKeywordAsProject(TableProjectKeyword $objTableProjectKeyword) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectKeywordAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectKeyword->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectKeywordAsProject on this TableProject with an unsaved TableProjectKeyword.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_keyword`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectKeyword->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectKeywordsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectKeywordsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectKeywordAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_keyword`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectKeywordAsProject
		 * @param TableProjectKeyword $objTableProjectKeyword
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectKeywordAsProject(TableProjectKeyword $objTableProjectKeyword) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectKeywordAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectKeyword->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectKeywordAsProject on this TableProject with an unsaved TableProjectKeyword.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_keyword`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectKeyword->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectKeywordsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectKeywordsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectKeywordAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_keyword`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectMessageAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectMessagesAsProject as an array of TableProjectMessage objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectMessage[]
		*/ 
		public function GetTableProjectMessageAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectMessage::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectMessagesAsProject
		 * @return int
		*/ 
		public function CountTableProjectMessagesAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectMessage::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectMessageAsProject
		 * @param TableProjectMessage $objTableProjectMessage
		 * @return void
		*/ 
		public function AssociateTableProjectMessageAsProject(TableProjectMessage $objTableProjectMessage) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectMessageAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectMessage->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectMessageAsProject on this TableProject with an unsaved TableProjectMessage.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_message`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectMessage->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectMessageAsProject
		 * @param TableProjectMessage $objTableProjectMessage
		 * @return void
		*/ 
		public function UnassociateTableProjectMessageAsProject(TableProjectMessage $objTableProjectMessage) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectMessageAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectMessage->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectMessageAsProject on this TableProject with an unsaved TableProjectMessage.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_message`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectMessage->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectMessagesAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectMessagesAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectMessageAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_message`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectMessageAsProject
		 * @param TableProjectMessage $objTableProjectMessage
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectMessageAsProject(TableProjectMessage $objTableProjectMessage) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectMessageAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectMessage->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectMessageAsProject on this TableProject with an unsaved TableProjectMessage.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_message`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectMessage->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectMessagesAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectMessagesAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectMessageAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_message`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectRequestCancelAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectRequestCancelsAsProject as an array of TableProjectRequestCancel objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectRequestCancel[]
		*/ 
		public function GetTableProjectRequestCancelAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectRequestCancel::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectRequestCancelsAsProject
		 * @return int
		*/ 
		public function CountTableProjectRequestCancelsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectRequestCancel::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectRequestCancelAsProject
		 * @param TableProjectRequestCancel $objTableProjectRequestCancel
		 * @return void
		*/ 
		public function AssociateTableProjectRequestCancelAsProject(TableProjectRequestCancel $objTableProjectRequestCancel) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectRequestCancelAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectRequestCancel->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectRequestCancelAsProject on this TableProject with an unsaved TableProjectRequestCancel.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_request_cancel`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectRequestCancel->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectRequestCancelAsProject
		 * @param TableProjectRequestCancel $objTableProjectRequestCancel
		 * @return void
		*/ 
		public function UnassociateTableProjectRequestCancelAsProject(TableProjectRequestCancel $objTableProjectRequestCancel) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCancelAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectRequestCancel->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCancelAsProject on this TableProject with an unsaved TableProjectRequestCancel.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_request_cancel`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectRequestCancel->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectRequestCancelsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectRequestCancelsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCancelAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_request_cancel`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectRequestCancelAsProject
		 * @param TableProjectRequestCancel $objTableProjectRequestCancel
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectRequestCancelAsProject(TableProjectRequestCancel $objTableProjectRequestCancel) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCancelAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectRequestCancel->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCancelAsProject on this TableProject with an unsaved TableProjectRequestCancel.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_request_cancel`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectRequestCancel->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectRequestCancelsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectRequestCancelsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCancelAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_request_cancel`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectRequestCompleteAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectRequestCompletesAsProject as an array of TableProjectRequestComplete objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectRequestComplete[]
		*/ 
		public function GetTableProjectRequestCompleteAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectRequestComplete::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectRequestCompletesAsProject
		 * @return int
		*/ 
		public function CountTableProjectRequestCompletesAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectRequestComplete::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectRequestCompleteAsProject
		 * @param TableProjectRequestComplete $objTableProjectRequestComplete
		 * @return void
		*/ 
		public function AssociateTableProjectRequestCompleteAsProject(TableProjectRequestComplete $objTableProjectRequestComplete) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectRequestCompleteAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectRequestComplete->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectRequestCompleteAsProject on this TableProject with an unsaved TableProjectRequestComplete.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_request_complete`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectRequestComplete->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectRequestCompleteAsProject
		 * @param TableProjectRequestComplete $objTableProjectRequestComplete
		 * @return void
		*/ 
		public function UnassociateTableProjectRequestCompleteAsProject(TableProjectRequestComplete $objTableProjectRequestComplete) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCompleteAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectRequestComplete->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCompleteAsProject on this TableProject with an unsaved TableProjectRequestComplete.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_request_complete`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectRequestComplete->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectRequestCompletesAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectRequestCompletesAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCompleteAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_request_complete`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectRequestCompleteAsProject
		 * @param TableProjectRequestComplete $objTableProjectRequestComplete
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectRequestCompleteAsProject(TableProjectRequestComplete $objTableProjectRequestComplete) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCompleteAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectRequestComplete->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCompleteAsProject on this TableProject with an unsaved TableProjectRequestComplete.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_request_complete`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectRequestComplete->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectRequestCompletesAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectRequestCompletesAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectRequestCompleteAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_request_complete`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectReviewByBuyerAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectReviewByBuyersAsProject as an array of TableProjectReviewByBuyer objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectReviewByBuyer[]
		*/ 
		public function GetTableProjectReviewByBuyerAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectReviewByBuyer::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectReviewByBuyersAsProject
		 * @return int
		*/ 
		public function CountTableProjectReviewByBuyersAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectReviewByBuyer::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectReviewByBuyerAsProject
		 * @param TableProjectReviewByBuyer $objTableProjectReviewByBuyer
		 * @return void
		*/ 
		public function AssociateTableProjectReviewByBuyerAsProject(TableProjectReviewByBuyer $objTableProjectReviewByBuyer) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectReviewByBuyerAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectReviewByBuyer->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectReviewByBuyerAsProject on this TableProject with an unsaved TableProjectReviewByBuyer.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_review_by_buyer`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectReviewByBuyer->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectReviewByBuyerAsProject
		 * @param TableProjectReviewByBuyer $objTableProjectReviewByBuyer
		 * @return void
		*/ 
		public function UnassociateTableProjectReviewByBuyerAsProject(TableProjectReviewByBuyer $objTableProjectReviewByBuyer) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByBuyerAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectReviewByBuyer->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByBuyerAsProject on this TableProject with an unsaved TableProjectReviewByBuyer.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_review_by_buyer`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectReviewByBuyer->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectReviewByBuyersAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectReviewByBuyersAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByBuyerAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_review_by_buyer`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectReviewByBuyerAsProject
		 * @param TableProjectReviewByBuyer $objTableProjectReviewByBuyer
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectReviewByBuyerAsProject(TableProjectReviewByBuyer $objTableProjectReviewByBuyer) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByBuyerAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectReviewByBuyer->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByBuyerAsProject on this TableProject with an unsaved TableProjectReviewByBuyer.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_review_by_buyer`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectReviewByBuyer->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectReviewByBuyersAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectReviewByBuyersAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByBuyerAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_review_by_buyer`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectReviewByProviderAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectReviewByProvidersAsProject as an array of TableProjectReviewByProvider objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectReviewByProvider[]
		*/ 
		public function GetTableProjectReviewByProviderAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectReviewByProvider::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectReviewByProvidersAsProject
		 * @return int
		*/ 
		public function CountTableProjectReviewByProvidersAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectReviewByProvider::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectReviewByProviderAsProject
		 * @param TableProjectReviewByProvider $objTableProjectReviewByProvider
		 * @return void
		*/ 
		public function AssociateTableProjectReviewByProviderAsProject(TableProjectReviewByProvider $objTableProjectReviewByProvider) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectReviewByProviderAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectReviewByProvider->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectReviewByProviderAsProject on this TableProject with an unsaved TableProjectReviewByProvider.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_review_by_provider`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectReviewByProvider->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectReviewByProviderAsProject
		 * @param TableProjectReviewByProvider $objTableProjectReviewByProvider
		 * @return void
		*/ 
		public function UnassociateTableProjectReviewByProviderAsProject(TableProjectReviewByProvider $objTableProjectReviewByProvider) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByProviderAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectReviewByProvider->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByProviderAsProject on this TableProject with an unsaved TableProjectReviewByProvider.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_review_by_provider`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectReviewByProvider->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectReviewByProvidersAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectReviewByProvidersAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByProviderAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_review_by_provider`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectReviewByProviderAsProject
		 * @param TableProjectReviewByProvider $objTableProjectReviewByProvider
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectReviewByProviderAsProject(TableProjectReviewByProvider $objTableProjectReviewByProvider) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByProviderAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectReviewByProvider->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByProviderAsProject on this TableProject with an unsaved TableProjectReviewByProvider.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_review_by_provider`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectReviewByProvider->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectReviewByProvidersAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectReviewByProvidersAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectReviewByProviderAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_review_by_provider`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableProjectWonAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableProjectWonsAsProject as an array of TableProjectWon objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableProjectWon[]
		*/ 
		public function GetTableProjectWonAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableProjectWon::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableProjectWonsAsProject
		 * @return int
		*/ 
		public function CountTableProjectWonsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableProjectWon::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableProjectWonAsProject
		 * @param TableProjectWon $objTableProjectWon
		 * @return void
		*/ 
		public function AssociateTableProjectWonAsProject(TableProjectWon $objTableProjectWon) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectWonAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectWon->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableProjectWonAsProject on this TableProject with an unsaved TableProjectWon.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_won`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectWon->Id) . '
			');
		}

		/**
		 * Unassociates a TableProjectWonAsProject
		 * @param TableProjectWon $objTableProjectWon
		 * @return void
		*/ 
		public function UnassociateTableProjectWonAsProject(TableProjectWon $objTableProjectWon) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectWonAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectWon->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectWonAsProject on this TableProject with an unsaved TableProjectWon.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_won`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectWon->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableProjectWonsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableProjectWonsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectWonAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_project_won`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableProjectWonAsProject
		 * @param TableProjectWon $objTableProjectWon
		 * @return void
		*/ 
		public function DeleteAssociatedTableProjectWonAsProject(TableProjectWon $objTableProjectWon) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectWonAsProject on this unsaved TableProject.');
			if ((is_null($objTableProjectWon->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectWonAsProject on this TableProject with an unsaved TableProjectWon.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_won`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableProjectWon->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableProjectWonsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableProjectWonsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableProjectWonAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_project_won`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableTransactionAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableTransactionsAsProject as an array of TableTransaction objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableTransaction[]
		*/ 
		public function GetTableTransactionAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableTransaction::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableTransactionsAsProject
		 * @return int
		*/ 
		public function CountTableTransactionsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableTransaction::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableTransactionAsProject
		 * @param TableTransaction $objTableTransaction
		 * @return void
		*/ 
		public function AssociateTableTransactionAsProject(TableTransaction $objTableTransaction) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableTransactionAsProject on this unsaved TableProject.');
			if ((is_null($objTableTransaction->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableTransactionAsProject on this TableProject with an unsaved TableTransaction.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_transaction`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableTransaction->Id) . '
			');
		}

		/**
		 * Unassociates a TableTransactionAsProject
		 * @param TableTransaction $objTableTransaction
		 * @return void
		*/ 
		public function UnassociateTableTransactionAsProject(TableTransaction $objTableTransaction) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableTransactionAsProject on this unsaved TableProject.');
			if ((is_null($objTableTransaction->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableTransactionAsProject on this TableProject with an unsaved TableTransaction.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_transaction`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableTransaction->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableTransactionsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableTransactionsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableTransactionAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_transaction`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableTransactionAsProject
		 * @param TableTransaction $objTableTransaction
		 * @return void
		*/ 
		public function DeleteAssociatedTableTransactionAsProject(TableTransaction $objTableTransaction) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableTransactionAsProject on this unsaved TableProject.');
			if ((is_null($objTableTransaction->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableTransactionAsProject on this TableProject with an unsaved TableTransaction.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_transaction`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableTransaction->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableTransactionsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableTransactionsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableTransactionAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_transaction`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

			
		
		// Related Objects' Methods for TableWatchListAsProject
		//-------------------------------------------------------------------

		/**
		 * Gets all associated TableWatchListsAsProject as an array of TableWatchList objects
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableWatchList[]
		*/ 
		public function GetTableWatchListAsProjectArray($objOptionalClauses = null) {
			if ((is_null($this->intId)))
				return array();

			try {
				return TableWatchList::LoadArrayByProjectId($this->intId, $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Counts all associated TableWatchListsAsProject
		 * @return int
		*/ 
		public function CountTableWatchListsAsProject() {
			if ((is_null($this->intId)))
				return 0;

			return TableWatchList::CountByProjectId($this->intId);
		}

		/**
		 * Associates a TableWatchListAsProject
		 * @param TableWatchList $objTableWatchList
		 * @return void
		*/ 
		public function AssociateTableWatchListAsProject(TableWatchList $objTableWatchList) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableWatchListAsProject on this unsaved TableProject.');
			if ((is_null($objTableWatchList->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call AssociateTableWatchListAsProject on this TableProject with an unsaved TableWatchList.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_watch_list`
				SET
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableWatchList->Id) . '
			');
		}

		/**
		 * Unassociates a TableWatchListAsProject
		 * @param TableWatchList $objTableWatchList
		 * @return void
		*/ 
		public function UnassociateTableWatchListAsProject(TableWatchList $objTableWatchList) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableWatchListAsProject on this unsaved TableProject.');
			if ((is_null($objTableWatchList->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableWatchListAsProject on this TableProject with an unsaved TableWatchList.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_watch_list`
				SET
					`project_id` = null
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableWatchList->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Unassociates all TableWatchListsAsProject
		 * @return void
		*/ 
		public function UnassociateAllTableWatchListsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableWatchListAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				UPDATE
					`table_watch_list`
				SET
					`project_id` = null
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes an associated TableWatchListAsProject
		 * @param TableWatchList $objTableWatchList
		 * @return void
		*/ 
		public function DeleteAssociatedTableWatchListAsProject(TableWatchList $objTableWatchList) {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableWatchListAsProject on this unsaved TableProject.');
			if ((is_null($objTableWatchList->Id)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableWatchListAsProject on this TableProject with an unsaved TableWatchList.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_watch_list`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($objTableWatchList->Id) . ' AND
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}

		/**
		 * Deletes all associated TableWatchListsAsProject
		 * @return void
		*/ 
		public function DeleteAllTableWatchListsAsProject() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Unable to call UnassociateTableWatchListAsProject on this unsaved TableProject.');

			// Get the Database Object for this Class
			$objDatabase = TableProject::GetDatabase();

			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_watch_list`
				WHERE
					`project_id` = ' . $objDatabase->SqlVariable($this->intId) . '
			');
		}





		////////////////////////////////////////
		// METHODS for SOAP-BASED WEB SERVICES
		////////////////////////////////////////

		public static function GetSoapComplexTypeXml() {
			$strToReturn = '<complexType name="TableProject"><sequence>';
			$strToReturn .= '<element name="Id" type="xsd:int"/>';
			$strToReturn .= '<element name="CategoryId" type="xsd:int"/>';
			$strToReturn .= '<element name="SubcategoryId" type="xsd:int"/>';
			$strToReturn .= '<element name="Title" type="xsd:string"/>';
			$strToReturn .= '<element name="Description" type="xsd:string"/>';
			$strToReturn .= '<element name="Os" type="xsd:string"/>';
			$strToReturn .= '<element name="Db" type="xsd:string"/>';
			$strToReturn .= '<element name="BudgetMin" type="xsd:int"/>';
			$strToReturn .= '<element name="BudgetMax" type="xsd:int"/>';
			$strToReturn .= '<element name="Featured" type="xsd:string"/>';
			$strToReturn .= '<element name="HideBid" type="xsd:string"/>';
			$strToReturn .= '<element name="HideSearch" type="xsd:string"/>';
			$strToReturn .= '<element name="GoldOnly" type="xsd:string"/>';
			$strToReturn .= '<element name="Enable" type="xsd:string"/>';
			$strToReturn .= '<element name="Sendmail" type="xsd:string"/>';
			$strToReturn .= '<element name="TotalBid" type="xsd:int"/>';
			$strToReturn .= '<element name="TimeLimitDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="PostDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="CancelDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="CloseDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="EndDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="Status" type="xsd:int"/>';
			$strToReturn .= '<element name="WonUser" type="xsd1:TableUserProject"/>';
			$strToReturn .= '<element name="AverageBid" type="xsd:float"/>';
			$strToReturn .= '<element name="WonDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="StartDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="LastBidDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="ProgressNumber" type="xsd:int"/>';
			$strToReturn .= '<element name="BudgetExact" type="xsd:int"/>';
			$strToReturn .= '<element name="User" type="xsd1:TableUserProject"/>';
			$strToReturn .= '<element name="Deadline" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="MainCategoryId" type="xsd:int"/>';
			$strToReturn .= '<element name="BudgetType" type="xsd:int"/>';
			$strToReturn .= '<element name="BuyerUsername" type="xsd:string"/>';
			$strToReturn .= '<element name="ProviderUsername" type="xsd:string"/>';
			$strToReturn .= '<element name="PageView" type="xsd:int"/>';
			$strToReturn .= '<element name="__blnRestored" type="xsd:boolean"/>';
			$strToReturn .= '</sequence></complexType>';
			return $strToReturn;
		}

		public static function AlterSoapComplexTypeArray(&$strComplexTypeArray) {
			if (!array_key_exists('TableProject', $strComplexTypeArray)) {
				$strComplexTypeArray['TableProject'] = TableProject::GetSoapComplexTypeXml();
				TableUserProject::AlterSoapComplexTypeArray($strComplexTypeArray);
				TableUserProject::AlterSoapComplexTypeArray($strComplexTypeArray);
			}
		}

		public static function GetArrayFromSoapArray($objSoapArray) {
			$objArrayToReturn = array();

			foreach ($objSoapArray as $objSoapObject)
				array_push($objArrayToReturn, TableProject::GetObjectFromSoapObject($objSoapObject));

			return $objArrayToReturn;
		}

		public static function GetObjectFromSoapObject($objSoapObject) {
			$objToReturn = new TableProject();
			if (property_exists($objSoapObject, 'Id'))
				$objToReturn->intId = $objSoapObject->Id;
			if (property_exists($objSoapObject, 'CategoryId'))
				$objToReturn->intCategoryId = $objSoapObject->CategoryId;
			if (property_exists($objSoapObject, 'SubcategoryId'))
				$objToReturn->intSubcategoryId = $objSoapObject->SubcategoryId;
			if (property_exists($objSoapObject, 'Title'))
				$objToReturn->strTitle = $objSoapObject->Title;
			if (property_exists($objSoapObject, 'Description'))
				$objToReturn->strDescription = $objSoapObject->Description;
			if (property_exists($objSoapObject, 'Os'))
				$objToReturn->strOs = $objSoapObject->Os;
			if (property_exists($objSoapObject, 'Db'))
				$objToReturn->strDb = $objSoapObject->Db;
			if (property_exists($objSoapObject, 'BudgetMin'))
				$objToReturn->intBudgetMin = $objSoapObject->BudgetMin;
			if (property_exists($objSoapObject, 'BudgetMax'))
				$objToReturn->intBudgetMax = $objSoapObject->BudgetMax;
			if (property_exists($objSoapObject, 'Featured'))
				$objToReturn->strFeatured = $objSoapObject->Featured;
			if (property_exists($objSoapObject, 'HideBid'))
				$objToReturn->strHideBid = $objSoapObject->HideBid;
			if (property_exists($objSoapObject, 'HideSearch'))
				$objToReturn->strHideSearch = $objSoapObject->HideSearch;
			if (property_exists($objSoapObject, 'GoldOnly'))
				$objToReturn->strGoldOnly = $objSoapObject->GoldOnly;
			if (property_exists($objSoapObject, 'Enable'))
				$objToReturn->strEnable = $objSoapObject->Enable;
			if (property_exists($objSoapObject, 'Sendmail'))
				$objToReturn->strSendmail = $objSoapObject->Sendmail;
			if (property_exists($objSoapObject, 'TotalBid'))
				$objToReturn->intTotalBid = $objSoapObject->TotalBid;
			if (property_exists($objSoapObject, 'TimeLimitDate'))
				$objToReturn->dttTimeLimitDate = new QDateTime($objSoapObject->TimeLimitDate);
			if (property_exists($objSoapObject, 'PostDate'))
				$objToReturn->dttPostDate = new QDateTime($objSoapObject->PostDate);
			if (property_exists($objSoapObject, 'CancelDate'))
				$objToReturn->dttCancelDate = new QDateTime($objSoapObject->CancelDate);
			if (property_exists($objSoapObject, 'CloseDate'))
				$objToReturn->dttCloseDate = new QDateTime($objSoapObject->CloseDate);
			if (property_exists($objSoapObject, 'EndDate'))
				$objToReturn->dttEndDate = new QDateTime($objSoapObject->EndDate);
			if (property_exists($objSoapObject, 'Status'))
				$objToReturn->intStatus = $objSoapObject->Status;
			if ((property_exists($objSoapObject, 'WonUser')) &&
				($objSoapObject->WonUser))
				$objToReturn->WonUser = TableUserProject::GetObjectFromSoapObject($objSoapObject->WonUser);
			if (property_exists($objSoapObject, 'AverageBid'))
				$objToReturn->fltAverageBid = $objSoapObject->AverageBid;
			if (property_exists($objSoapObject, 'WonDate'))
				$objToReturn->dttWonDate = new QDateTime($objSoapObject->WonDate);
			if (property_exists($objSoapObject, 'StartDate'))
				$objToReturn->dttStartDate = new QDateTime($objSoapObject->StartDate);
			if (property_exists($objSoapObject, 'LastBidDate'))
				$objToReturn->dttLastBidDate = new QDateTime($objSoapObject->LastBidDate);
			if (property_exists($objSoapObject, 'ProgressNumber'))
				$objToReturn->intProgressNumber = $objSoapObject->ProgressNumber;
			if (property_exists($objSoapObject, 'BudgetExact'))
				$objToReturn->intBudgetExact = $objSoapObject->BudgetExact;
			if ((property_exists($objSoapObject, 'User')) &&
				($objSoapObject->User))
				$objToReturn->User = TableUserProject::GetObjectFromSoapObject($objSoapObject->User);
			if (property_exists($objSoapObject, 'Deadline'))
				$objToReturn->dttDeadline = new QDateTime($objSoapObject->Deadline);
			if (property_exists($objSoapObject, 'MainCategoryId'))
				$objToReturn->intMainCategoryId = $objSoapObject->MainCategoryId;
			if (property_exists($objSoapObject, 'BudgetType'))
				$objToReturn->intBudgetType = $objSoapObject->BudgetType;
			if (property_exists($objSoapObject, 'BuyerUsername'))
				$objToReturn->strBuyerUsername = $objSoapObject->BuyerUsername;
			if (property_exists($objSoapObject, 'ProviderUsername'))
				$objToReturn->strProviderUsername = $objSoapObject->ProviderUsername;
			if (property_exists($objSoapObject, 'PageView'))
				$objToReturn->intPageView = $objSoapObject->PageView;
			if (property_exists($objSoapObject, '__blnRestored'))
				$objToReturn->__blnRestored = $objSoapObject->__blnRestored;
			return $objToReturn;
		}

		public static function GetSoapArrayFromArray($objArray) {
			if (!$objArray)
				return null;

			$objArrayToReturn = array();

			foreach ($objArray as $objObject)
				array_push($objArrayToReturn, TableProject::GetSoapObjectFromObject($objObject, true));

			return unserialize(serialize($objArrayToReturn));
		}

		public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) {
			if ($objObject->dttTimeLimitDate)
				$objObject->dttTimeLimitDate = $objObject->dttTimeLimitDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttPostDate)
				$objObject->dttPostDate = $objObject->dttPostDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttCancelDate)
				$objObject->dttCancelDate = $objObject->dttCancelDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttCloseDate)
				$objObject->dttCloseDate = $objObject->dttCloseDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttEndDate)
				$objObject->dttEndDate = $objObject->dttEndDate->__toString(QDateTime::FormatSoap);
			if ($objObject->objWonUser)
				$objObject->objWonUser = TableUserProject::GetSoapObjectFromObject($objObject->objWonUser, false);
			else if (!$blnBindRelatedObjects)
				$objObject->intWonUserId = null;
			if ($objObject->dttWonDate)
				$objObject->dttWonDate = $objObject->dttWonDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttStartDate)
				$objObject->dttStartDate = $objObject->dttStartDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttLastBidDate)
				$objObject->dttLastBidDate = $objObject->dttLastBidDate->__toString(QDateTime::FormatSoap);
			if ($objObject->objUser)
				$objObject->objUser = TableUserProject::GetSoapObjectFromObject($objObject->objUser, false);
			else if (!$blnBindRelatedObjects)
				$objObject->intUserId = null;
			if ($objObject->dttDeadline)
				$objObject->dttDeadline = $objObject->dttDeadline->__toString(QDateTime::FormatSoap);
			return $objObject;
		}




	}



	/////////////////////////////////////
	// ADDITIONAL CLASSES for QCubed QUERY
	/////////////////////////////////////

	class QQNodeTableProject extends QQNode {
		protected $strTableName = 'table_project';
		protected $strPrimaryKey = 'id';
		protected $strClassName = 'TableProject';
		public function __get($strName) {
			switch ($strName) {
				case 'Id':
					return new QQNode('id', 'Id', 'integer', $this);
				case 'CategoryId':
					return new QQNode('category_id', 'CategoryId', 'integer', $this);
				case 'SubcategoryId':
					return new QQNode('subcategory_id', 'SubcategoryId', 'integer', $this);
				case 'Title':
					return new QQNode('title', 'Title', 'string', $this);
				case 'Description':
					return new QQNode('description', 'Description', 'string', $this);
				case 'Os':
					return new QQNode('os', 'Os', 'string', $this);
				case 'Db':
					return new QQNode('db', 'Db', 'string', $this);
				case 'BudgetMin':
					return new QQNode('budget_min', 'BudgetMin', 'integer', $this);
				case 'BudgetMax':
					return new QQNode('budget_max', 'BudgetMax', 'integer', $this);
				case 'Featured':
					return new QQNode('featured', 'Featured', 'string', $this);
				case 'HideBid':
					return new QQNode('hide_bid', 'HideBid', 'string', $this);
				case 'HideSearch':
					return new QQNode('hide_search', 'HideSearch', 'string', $this);
				case 'GoldOnly':
					return new QQNode('gold_only', 'GoldOnly', 'string', $this);
				case 'Enable':
					return new QQNode('enable', 'Enable', 'string', $this);
				case 'Sendmail':
					return new QQNode('sendmail', 'Sendmail', 'string', $this);
				case 'TotalBid':
					return new QQNode('total_bid', 'TotalBid', 'integer', $this);
				case 'TimeLimitDate':
					return new QQNode('time_limit_date', 'TimeLimitDate', 'QDateTime', $this);
				case 'PostDate':
					return new QQNode('post_date', 'PostDate', 'QDateTime', $this);
				case 'CancelDate':
					return new QQNode('cancel_date', 'CancelDate', 'QDateTime', $this);
				case 'CloseDate':
					return new QQNode('close_date', 'CloseDate', 'QDateTime', $this);
				case 'EndDate':
					return new QQNode('end_date', 'EndDate', 'QDateTime', $this);
				case 'Status':
					return new QQNode('status', 'Status', 'integer', $this);
				case 'WonUserId':
					return new QQNode('won_user_id', 'WonUserId', 'integer', $this);
				case 'WonUser':
					return new QQNodeTableUserProject('won_user_id', 'WonUser', 'integer', $this);
				case 'AverageBid':
					return new QQNode('average_bid', 'AverageBid', 'double', $this);
				case 'WonDate':
					return new QQNode('won_date', 'WonDate', 'QDateTime', $this);
				case 'StartDate':
					return new QQNode('start_date', 'StartDate', 'QDateTime', $this);
				case 'LastBidDate':
					return new QQNode('last_bid_date', 'LastBidDate', 'QDateTime', $this);
				case 'ProgressNumber':
					return new QQNode('progress_number', 'ProgressNumber', 'integer', $this);
				case 'BudgetExact':
					return new QQNode('budget_exact', 'BudgetExact', 'integer', $this);
				case 'UserId':
					return new QQNode('user_id', 'UserId', 'integer', $this);
				case 'User':
					return new QQNodeTableUserProject('user_id', 'User', 'integer', $this);
				case 'Deadline':
					return new QQNode('deadline', 'Deadline', 'QDateTime', $this);
				case 'MainCategoryId':
					return new QQNode('main_category_id', 'MainCategoryId', 'integer', $this);
				case 'BudgetType':
					return new QQNode('budget_type', 'BudgetType', 'integer', $this);
				case 'BuyerUsername':
					return new QQNode('buyer_username', 'BuyerUsername', 'string', $this);
				case 'ProviderUsername':
					return new QQNode('provider_username', 'ProviderUsername', 'string', $this);
				case 'PageView':
					return new QQNode('page_view', 'PageView', 'integer', $this);
				case 'TableEscrowAsProject':
					return new QQReverseReferenceNodeTableEscrow($this, 'tableescrowasproject', 'reverse_reference', 'project_id');
				case 'TableFileTransferAsProject':
					return new QQReverseReferenceNodeTableFileTransfer($this, 'tablefiletransferasproject', 'reverse_reference', 'project_id');
				case 'TablePrivateMessageAsProject':
					return new QQReverseReferenceNodeTablePrivateMessage($this, 'tableprivatemessageasproject', 'reverse_reference', 'project_id');
				case 'TableProjectAgreementAsProject':
					return new QQReverseReferenceNodeTableProjectAgreement($this, 'tableprojectagreementasproject', 'reverse_reference', 'project_id');
				case 'TableProjectAttachmentAsProject':
					return new QQReverseReferenceNodeTableProjectAttachment($this, 'tableprojectattachmentasproject', 'reverse_reference', 'project_id');
				case 'TableProjectBidAsProject':
					return new QQReverseReferenceNodeTableProjectBid($this, 'tableprojectbidasproject', 'reverse_reference', 'project_id');
				case 'TableProjectCancelAsProject':
					return new QQReverseReferenceNodeTableProjectCancel($this, 'tableprojectcancelasproject', 'reverse_reference', 'project_id');
				case 'TableProjectEditAsProject':
					return new QQReverseReferenceNodeTableProjectEdit($this, 'tableprojecteditasproject', 'reverse_reference', 'project_id');
				case 'TableProjectKeywordAsProject':
					return new QQReverseReferenceNodeTableProjectKeyword($this, 'tableprojectkeywordasproject', 'reverse_reference', 'project_id');
				case 'TableProjectMessageAsProject':
					return new QQReverseReferenceNodeTableProjectMessage($this, 'tableprojectmessageasproject', 'reverse_reference', 'project_id');
				case 'TableProjectRequestCancelAsProject':
					return new QQReverseReferenceNodeTableProjectRequestCancel($this, 'tableprojectrequestcancelasproject', 'reverse_reference', 'project_id');
				case 'TableProjectRequestCompleteAsProject':
					return new QQReverseReferenceNodeTableProjectRequestComplete($this, 'tableprojectrequestcompleteasproject', 'reverse_reference', 'project_id');
				case 'TableProjectReviewByBuyerAsProject':
					return new QQReverseReferenceNodeTableProjectReviewByBuyer($this, 'tableprojectreviewbybuyerasproject', 'reverse_reference', 'project_id');
				case 'TableProjectReviewByProviderAsProject':
					return new QQReverseReferenceNodeTableProjectReviewByProvider($this, 'tableprojectreviewbyproviderasproject', 'reverse_reference', 'project_id');
				case 'TableProjectWonAsProject':
					return new QQReverseReferenceNodeTableProjectWon($this, 'tableprojectwonasproject', 'reverse_reference', 'project_id');
				case 'TableTransactionAsProject':
					return new QQReverseReferenceNodeTableTransaction($this, 'tabletransactionasproject', 'reverse_reference', 'project_id');
				case 'TableWatchListAsProject':
					return new QQReverseReferenceNodeTableWatchList($this, 'tablewatchlistasproject', 'reverse_reference', 'project_id');

				case '_PrimaryKeyNode':
					return new QQNode('id', 'Id', 'integer', $this);
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
	}

	class QQReverseReferenceNodeTableProject extends QQReverseReferenceNode {
		protected $strTableName = 'table_project';
		protected $strPrimaryKey = 'id';
		protected $strClassName = 'TableProject';
		public function __get($strName) {
			switch ($strName) {
				case 'Id':
					return new QQNode('id', 'Id', 'integer', $this);
				case 'CategoryId':
					return new QQNode('category_id', 'CategoryId', 'integer', $this);
				case 'SubcategoryId':
					return new QQNode('subcategory_id', 'SubcategoryId', 'integer', $this);
				case 'Title':
					return new QQNode('title', 'Title', 'string', $this);
				case 'Description':
					return new QQNode('description', 'Description', 'string', $this);
				case 'Os':
					return new QQNode('os', 'Os', 'string', $this);
				case 'Db':
					return new QQNode('db', 'Db', 'string', $this);
				case 'BudgetMin':
					return new QQNode('budget_min', 'BudgetMin', 'integer', $this);
				case 'BudgetMax':
					return new QQNode('budget_max', 'BudgetMax', 'integer', $this);
				case 'Featured':
					return new QQNode('featured', 'Featured', 'string', $this);
				case 'HideBid':
					return new QQNode('hide_bid', 'HideBid', 'string', $this);
				case 'HideSearch':
					return new QQNode('hide_search', 'HideSearch', 'string', $this);
				case 'GoldOnly':
					return new QQNode('gold_only', 'GoldOnly', 'string', $this);
				case 'Enable':
					return new QQNode('enable', 'Enable', 'string', $this);
				case 'Sendmail':
					return new QQNode('sendmail', 'Sendmail', 'string', $this);
				case 'TotalBid':
					return new QQNode('total_bid', 'TotalBid', 'integer', $this);
				case 'TimeLimitDate':
					return new QQNode('time_limit_date', 'TimeLimitDate', 'QDateTime', $this);
				case 'PostDate':
					return new QQNode('post_date', 'PostDate', 'QDateTime', $this);
				case 'CancelDate':
					return new QQNode('cancel_date', 'CancelDate', 'QDateTime', $this);
				case 'CloseDate':
					return new QQNode('close_date', 'CloseDate', 'QDateTime', $this);
				case 'EndDate':
					return new QQNode('end_date', 'EndDate', 'QDateTime', $this);
				case 'Status':
					return new QQNode('status', 'Status', 'integer', $this);
				case 'WonUserId':
					return new QQNode('won_user_id', 'WonUserId', 'integer', $this);
				case 'WonUser':
					return new QQNodeTableUserProject('won_user_id', 'WonUser', 'integer', $this);
				case 'AverageBid':
					return new QQNode('average_bid', 'AverageBid', 'double', $this);
				case 'WonDate':
					return new QQNode('won_date', 'WonDate', 'QDateTime', $this);
				case 'StartDate':
					return new QQNode('start_date', 'StartDate', 'QDateTime', $this);
				case 'LastBidDate':
					return new QQNode('last_bid_date', 'LastBidDate', 'QDateTime', $this);
				case 'ProgressNumber':
					return new QQNode('progress_number', 'ProgressNumber', 'integer', $this);
				case 'BudgetExact':
					return new QQNode('budget_exact', 'BudgetExact', 'integer', $this);
				case 'UserId':
					return new QQNode('user_id', 'UserId', 'integer', $this);
				case 'User':
					return new QQNodeTableUserProject('user_id', 'User', 'integer', $this);
				case 'Deadline':
					return new QQNode('deadline', 'Deadline', 'QDateTime', $this);
				case 'MainCategoryId':
					return new QQNode('main_category_id', 'MainCategoryId', 'integer', $this);
				case 'BudgetType':
					return new QQNode('budget_type', 'BudgetType', 'integer', $this);
				case 'BuyerUsername':
					return new QQNode('buyer_username', 'BuyerUsername', 'string', $this);
				case 'ProviderUsername':
					return new QQNode('provider_username', 'ProviderUsername', 'string', $this);
				case 'PageView':
					return new QQNode('page_view', 'PageView', 'integer', $this);
				case 'TableEscrowAsProject':
					return new QQReverseReferenceNodeTableEscrow($this, 'tableescrowasproject', 'reverse_reference', 'project_id');
				case 'TableFileTransferAsProject':
					return new QQReverseReferenceNodeTableFileTransfer($this, 'tablefiletransferasproject', 'reverse_reference', 'project_id');
				case 'TablePrivateMessageAsProject':
					return new QQReverseReferenceNodeTablePrivateMessage($this, 'tableprivatemessageasproject', 'reverse_reference', 'project_id');
				case 'TableProjectAgreementAsProject':
					return new QQReverseReferenceNodeTableProjectAgreement($this, 'tableprojectagreementasproject', 'reverse_reference', 'project_id');
				case 'TableProjectAttachmentAsProject':
					return new QQReverseReferenceNodeTableProjectAttachment($this, 'tableprojectattachmentasproject', 'reverse_reference', 'project_id');
				case 'TableProjectBidAsProject':
					return new QQReverseReferenceNodeTableProjectBid($this, 'tableprojectbidasproject', 'reverse_reference', 'project_id');
				case 'TableProjectCancelAsProject':
					return new QQReverseReferenceNodeTableProjectCancel($this, 'tableprojectcancelasproject', 'reverse_reference', 'project_id');
				case 'TableProjectEditAsProject':
					return new QQReverseReferenceNodeTableProjectEdit($this, 'tableprojecteditasproject', 'reverse_reference', 'project_id');
				case 'TableProjectKeywordAsProject':
					return new QQReverseReferenceNodeTableProjectKeyword($this, 'tableprojectkeywordasproject', 'reverse_reference', 'project_id');
				case 'TableProjectMessageAsProject':
					return new QQReverseReferenceNodeTableProjectMessage($this, 'tableprojectmessageasproject', 'reverse_reference', 'project_id');
				case 'TableProjectRequestCancelAsProject':
					return new QQReverseReferenceNodeTableProjectRequestCancel($this, 'tableprojectrequestcancelasproject', 'reverse_reference', 'project_id');
				case 'TableProjectRequestCompleteAsProject':
					return new QQReverseReferenceNodeTableProjectRequestComplete($this, 'tableprojectrequestcompleteasproject', 'reverse_reference', 'project_id');
				case 'TableProjectReviewByBuyerAsProject':
					return new QQReverseReferenceNodeTableProjectReviewByBuyer($this, 'tableprojectreviewbybuyerasproject', 'reverse_reference', 'project_id');
				case 'TableProjectReviewByProviderAsProject':
					return new QQReverseReferenceNodeTableProjectReviewByProvider($this, 'tableprojectreviewbyproviderasproject', 'reverse_reference', 'project_id');
				case 'TableProjectWonAsProject':
					return new QQReverseReferenceNodeTableProjectWon($this, 'tableprojectwonasproject', 'reverse_reference', 'project_id');
				case 'TableTransactionAsProject':
					return new QQReverseReferenceNodeTableTransaction($this, 'tabletransactionasproject', 'reverse_reference', 'project_id');
				case 'TableWatchListAsProject':
					return new QQReverseReferenceNodeTableWatchList($this, 'tablewatchlistasproject', 'reverse_reference', 'project_id');

				case '_PrimaryKeyNode':
					return new QQNode('id', 'Id', 'integer', $this);
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
	}

?>